Date: Thu, 19 May 2016 17:21:24 +0000 (UTC) From: "Conrad E. Meyer" <cem@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r300220 - head/sys/sys Message-ID: <201605191721.u4JHLOOs040484@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605191721.u4JHLOOs040484>