From 80e939f256e9286d40ebed15701722fe98b48ba1 Mon Sep 17 00:00:00 2001 From: Conrad Meyer Date: Thu, 19 May 2016 17:21:24 +0000 Subject: sys/vmmeter.h: Fix trivial '-Wsign-compare' warning in common header Frankly, it doesn't make sense for vm_pageout_wakeup_thresh to have a negative value (it is only ever set to a fraction of v_free_min, which is unsigned and also obviously non-negative). But I'm not going to try and convert every non-negative scalar in the VM to unsigned today, so just cast it for the comparison. Submitted by: Clang 3.3 Sponsored by: EMC / Isilon Storage Division --- sys/sys/vmmeter.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/sys/vmmeter.h') diff --git a/sys/sys/vmmeter.h b/sys/sys/vmmeter.h index 532e5299f797..b7cbb1147bd5 100644 --- a/sys/sys/vmmeter.h +++ b/sys/sys/vmmeter.h @@ -186,7 +186,7 @@ int vm_paging_needed(void) { return (vm_cnt.v_free_count + vm_cnt.v_cache_count < - vm_pageout_wakeup_thresh); + (u_int)vm_pageout_wakeup_thresh); } #endif -- cgit v1.2.3