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; } -- 1.9.1 -- To unsubscribe, send mail to wmaker-dev-unsubscr...@lists.windowmaker.org.