diff options
author | Maciej W. Rozycki <macro@imgtec.com> | 2016-11-21 15:59:42 +0000 |
---|---|---|
committer | Maciej W. Rozycki <macro@imgtec.com> | 2016-11-21 16:38:08 +0000 |
commit | b6ddcd85e3c0ae1f12af60efd6d1b97ac4bfa771 (patch) | |
tree | da9d5de682782dbbc53c9eede460980f4cdfc0c3 /opcodes/iq2000-opc.c | |
parent | 3fff9862d5229def9318912c2de64a03dab74532 (diff) | |
download | binutils-gdb-b6ddcd85e3c0ae1f12af60efd6d1b97ac4bfa771.tar.gz |
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'.
Diffstat (limited to 'opcodes/iq2000-opc.c')
0 files changed, 0 insertions, 0 deletions