elfcmp: fix self-comparison error with GCC 6
authorDavid Abdurachmanov <davidlt@cern.ch>
Mon, 11 Apr 2016 14:00:57 +0000 (16:00 +0200)
committerMark Wielaard <mark@tarox.wildebeest.org>
Mon, 11 Apr 2016 15:07:22 +0000 (17:07 +0200)
commit836a16fe5b5bab4a3afe2c991c104652775ce3a3
treeedf5dbef825d255e475c3d8e8d5dad7967217e65
parentc57e357a99314c1f7f4e56c2a534f60ee3299a4f
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 <davidlt@cern.ch>
src/ChangeLog
src/elfcmp.c