svn commit: r300220 - head/sys/sys
Conrad E. Meyer
cem at FreeBSD.org
Thu May 19 17:21:25 UTC 2016
Author: cem
Date: Thu May 19 17:21:24 2016
New Revision: 300220
URL: https://svnweb.freebsd.org/changeset/base/300220
Log:
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
Modified:
head/sys/sys/vmmeter.h
Modified: head/sys/sys/vmmeter.h
==============================================================================
--- head/sys/sys/vmmeter.h Thu May 19 17:14:24 2016 (r300219)
+++ head/sys/sys/vmmeter.h Thu May 19 17:21:24 2016 (r300220)
@@ -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
More information about the svn-src-all
mailing list