commit: 7d364f3f20e74aab152288d92cef1e0bba513240
Author: Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Sun Mar 29 19:36:08 2015 +0000
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Sun Mar 29 19:36:08 2015 +0000
URL: https://gitweb.gentoo.org/proj/pax-utils.git/commit/?id=7d364f3f
scanelf: add paren to quiet new gcc-5 warning
Newer gcc versions throw a warning on code that is written how we want
(comparing the result of !strcmp to a variable). Add a set of paren to
make gcc happy.
scanelf.c: In function 'scanelf_file_needed_lib':
scanelf.c:1083:43: warning: logical not is only applied to the left hand side
of comparison [-Wlogical-not-parentheses]
if (!strcmp(find_lib_name, needed) == invert) \
^
scanelf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scanelf.c b/scanelf.c
index a50b6e4..7219f1c 100644
--- a/scanelf.c
+++ b/scanelf.c
@@ -1080,7 +1080,7 @@ static const char *scanelf_file_needed_lib(elfobj *elf,
char *found_needed, char
int invert = 1; \
if (find_lib_name[0] ==
'!') \
invert = 0,
++find_lib_name; \
- if
(!strcmp(find_lib_name, needed) == invert) \
+ if
((!strcmp(find_lib_name, needed)) == invert) \
++matched; \
} \
\