Oops, my mistake for copying a compile fix from another machine...
If we can't detect how much RAM we have, 0 is not a suitable default, so
keep the error for the time being and only downgrade the error for
unknown swap.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
retval = (uint64_t) pagesize * npages;
#else
-#warning "Unknown how to get RAM size for this OS"
- return 0;
+#error "Unknown how to get RAM size for this OS"
#endif
return retval / (1024*1024);
retval = (uint64_t) pagesize * totalpages;
#else
-#error "Unknown how to get swap size for this OS"
+#warning "Unknown how to get swap size for this OS"
+ return 0;
#endif
return retval / (1024*1024);