This is the mail archive of the elfutils-devel@sourceware.org mailing list for the elfutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] elflint: Fix sh_entsize check when comparing SHT_HASH and SHT_GNU_HASH.


    
    elflint.c: In function ‘compare_hash_gnu_hash’:
    elflint.c:2483:34: error: duplicated ‘if’ condition [-Werror=duplicated-cond]
       else if (hash_shdr->sh_entsize == sizeof (Elf64_Word))
                ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
    elflint.c:2448:29: note: previously used here
       if (hash_shdr->sh_entsize == sizeof (Elf32_Word))

What a nice catch!  I love GCC :)
    

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]