readelf: Don't shadow index function from string.h
authorMark Wielaard <mark@klomp.org>
Wed, 4 Jul 2018 14:08:05 +0000 (16:08 +0200)
committerMark Wielaard <mark@klomp.org>
Thu, 5 Jul 2018 19:23:47 +0000 (21:23 +0200)
commit3012cda4bafa723c1894f74ab80b2c9ee7aad2d2
tree364ca1c6428a3cf1d45de3b2ad6d19529404f164
parente893aab0d12284c8909ebacfca529c0b554abb9c
readelf: Don't shadow index function from string.h

On some ancient GCC versions (4.4.7 at least) -Wshadow warns about local
variables "shadowing" global function definitions.

  readelf.c: In function ‘print_debug_addr_section’:
  readelf.c:5265: error: declaration of ‘index’ shadows a global declaration
  /usr/include/string.h:489: error: shadowed declaration is here

This is silly of course, but easy to work around.

Signed-off-by: Mark Wielaard <mark@klomp.org>
src/ChangeLog
src/readelf.c