diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-02-28 09:29:11 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-02-28 09:29:11 +0000 |
commit | 2035119201b4c63fe84d3883ae1b1c058bcc862c (patch) | |
tree | 8f3f4910845cab58037b33306a068b0793c0bc7e /lib | |
parent | 1e74007b4c7c05f0b157b16acc2b9605002fe2ba (diff) |
lib: Downgrade error for failing to determine swap interface to a warning
If we can't detect how much swap is available, presume none.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/intel_drm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/intel_drm.c b/lib/intel_drm.c index 36a24fab..c35bc811 100644 --- a/lib/intel_drm.c +++ b/lib/intel_drm.c @@ -104,7 +104,8 @@ intel_get_total_ram_mb(void) retval = (uint64_t) pagesize * npages; #else -#error "Unknown how to get RAM size for this OS" +#warning "Unknown how to get RAM size for this OS" + return 0; #endif return retval / (1024*1024); |