[PATCH] readelf: Don't shadow index function from string.h

Mark Wielaard mark@klomp.org
Thu Jul 5 19:26:00 GMT 2018

On Wed, Jul 04, 2018 at 04:13:26PM +0200, Mark Wielaard wrote:
> 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.

Pushed to master.

More information about the Elfutils-devel mailing list