From 917d454f0dbdf04feb3378a192612d8985a4573f Mon Sep 17 00:00:00 2001 From: Doug Torrance Date: Thu, 9 Oct 2014 23:50:17 -0500 Subject: [PATCH] wmmemload: Add suggested parentheses. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Avoid the following compiler warning: mem_linux.c: In function ‘mem_init’: mem_linux.c:52:40: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] if (version == 2 && patchlevel >= 5 && sublevel >= 1 || \ ^ --- wmmemload/src/mem_linux.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wmmemload/src/mem_linux.c b/wmmemload/src/mem_linux.c index eee1b90..0d299e5 100644 --- a/wmmemload/src/mem_linux.c +++ b/wmmemload/src/mem_linux.c @@ -49,8 +49,8 @@ void mem_init(void) /* new format ? (kernel >= 2.5.1pre?) */ /* see linux/fs/proc/proc_misc.c */ - if (version == 2 && patchlevel >= 5 && sublevel >= 1 || \ - version == 2 && patchlevel >= 6 && sublevel >= 0 || \ + if ((version == 2 && patchlevel >= 5 && sublevel >= 1) || \ + (version == 2 && patchlevel >= 6 && sublevel >= 0) || \ version >2 ) isnewformat = 1; }