[Pkg-wmaker-commits] [wmmemload] 51/103: wmmemload: Add suggested parentheses.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Mon Aug 24 03:11:44 UTC 2015


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to branch master
in repository wmmemload.

commit abbc2afd6278830b4ffc3d16546354b50e7f53b1
Author: Doug Torrance <dtorrance at monmouthcollege.edu>
Date:   Thu Oct 9 23:50:17 2014 -0500

    wmmemload: Add suggested parentheses.
    
    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 || \
                                            ^
---
 src/mem_linux.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/mem_linux.c b/src/mem_linux.c
index eee1b90..0d299e5 100644
--- a/src/mem_linux.c
+++ b/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;
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmmemload.git



More information about the Pkg-wmaker-commits mailing list