diff options
| author | David Abdurachmanov <[email protected]> | 2016-04-11 16:00:57 +0200 |
|---|---|---|
| committer | Mark Wielaard <[email protected]> | 2016-04-11 17:07:22 +0200 |
| commit | 836a16fe5b5bab4a3afe2c991c104652775ce3a3 (patch) | |
| tree | edf5dbef825d255e475c3d8e8d5dad7967217e65 /src/elfcmp.c | |
| parent | c57e357a99314c1f7f4e56c2a534f60ee3299a4f (diff) | |
elfcmp: fix self-comparison error with GCC 6
Noticed with Fedora 24 Alpha, gcc (GCC) 6.0.0 20160406
(Red Hat 6.0.0-0.20).
elfcmp.c: In function ‘main’:
elfcmp.c:364:199: error: self-comparison always evaluates
to false [-Werror=tautological-compare]
if (unlikely (name1 == NULL || name2 == NULL
Signed-off-by: David Abdurachmanov <[email protected]>
Diffstat (limited to 'src/elfcmp.c')
| -rw-r--r-- | src/elfcmp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/elfcmp.c b/src/elfcmp.c index 852b92f5..7b5d39ce 100644 --- a/src/elfcmp.c +++ b/src/elfcmp.c @@ -368,7 +368,7 @@ main (int argc, char *argv[]) && sym1->st_shndx != SHN_UNDEF) || sym1->st_info != sym2->st_info || sym1->st_other != sym2->st_other - || sym1->st_shndx != sym1->st_shndx)) + || sym1->st_shndx != sym2->st_shndx)) { // XXX Do we want to allow reordered symbol tables? symtab_mismatch: |
