diff options
author | 2015-03-29 15:36:08 -0400 | |
---|---|---|
committer | 2015-03-29 15:36:08 -0400 | |
commit | 7d364f3f20e74aab152288d92cef1e0bba513240 (patch) | |
tree | 59252c5ef4d9b097edef04e1d3e660bdd4c37077 /scanelf.c | |
parent | build: link against gnulib (diff) | |
download | pax-utils-7d364f3f20e74aab152288d92cef1e0bba513240.tar.gz pax-utils-7d364f3f20e74aab152288d92cef1e0bba513240.tar.bz2 pax-utils-7d364f3f20e74aab152288d92cef1e0bba513240.zip |
scanelf: add paren to quiet new gcc-5 warningv1.0.3
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) \
^
Diffstat (limited to 'scanelf.c')
-rw-r--r-- | scanelf.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; \ } \ \ |