BFD/DWARF2: Correct an `index' global shadowing error
authorMaciej W. Rozycki <macro@imgtec.com>
Mon, 21 Nov 2016 15:59:42 +0000 (15:59 +0000)
committerMaciej W. Rozycki <macro@imgtec.com>
Mon, 21 Nov 2016 16:38:08 +0000 (16:38 +0000)
commitb6ddcd85e3c0ae1f12af60efd6d1b97ac4bfa771
treeda9d5de682782dbbc53c9eede460980f4cdfc0c3
parent3fff9862d5229def9318912c2de64a03dab74532
BFD/DWARF2: Correct an `index' global shadowing error

Fix a commit 089e3718bd8d ("Greatly improve the speed if looking up
DWARF line number information.") build regression:

cc1: warnings being treated as errors
.../bfd/dwarf2.c: In function 'build_line_info_table':
.../bfd/dwarf2.c:1614: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
.../bfd/dwarf2.c: In function 'build_lookup_funcinfo_table':
.../bfd/dwarf2.c:2262: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
make[4]: *** [dwarf2.lo] Error 1

in a way following commit 91d6fa6a035c ("Add -Wshadow to the gcc command
line options used when compiling the binutils.").

bfd/
* dwarf2.c (build_line_info_table): Rename `index' local
variable to `line_index'.
(build_lookup_funcinfo_table): Rename `index' local variable to
`func_index'.
bfd/ChangeLog
bfd/dwarf2.c
This page took 0.025326 seconds and 4 git commands to generate.