diff options
author | Nick Clifton <nickc@redhat.com> | 2009-12-11 13:42:17 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2009-12-11 13:42:17 +0000 |
commit | 91d6fa6a035cc7d0b7be5c99c194a64cb80924b0 (patch) | |
tree | 214507c313b77d619b52afcae2af0b02c9fa700b /bfd/elf32-v850.c | |
parent | 01fe1b4183324882e88e8c64748bffdc69ea3a9c (diff) | |
download | gdb-91d6fa6a035cc7d0b7be5c99c194a64cb80924b0.zip gdb-91d6fa6a035cc7d0b7be5c99c194a64cb80924b0.tar.gz gdb-91d6fa6a035cc7d0b7be5c99c194a64cb80924b0.tar.bz2 |
Add -Wshadow to the gcc command line options used when compiling the binutils.
Fix up all warnings generated by the addition of this switch.
Diffstat (limited to 'bfd/elf32-v850.c')
-rw-r--r-- | bfd/elf32-v850.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bfd/elf32-v850.c b/bfd/elf32-v850.c index 922698f..2965e29 100644 --- a/bfd/elf32-v850.c +++ b/bfd/elf32-v850.c @@ -2188,7 +2188,7 @@ v850_elf_relax_delete_bytes (bfd *abfd, Elf32_External_Sym *extsyms; Elf32_External_Sym *esym; Elf32_External_Sym *esymend; - int index; + int sym_index; unsigned int sec_shndx; bfd_byte *contents; Elf_Internal_Rela *irel; @@ -2336,12 +2336,12 @@ v850_elf_relax_delete_bytes (bfd *abfd, esym = extsyms + symtab_hdr->sh_info; esymend = extsyms + (symtab_hdr->sh_size / sizeof (Elf32_External_Sym)); - for (index = 0; esym < esymend; esym ++, index ++) + for (sym_index = 0; esym < esymend; esym ++, sym_index ++) { Elf_Internal_Sym isym; bfd_elf32_swap_symbol_in (abfd, esym, shndx, & isym); - sym_hash = elf_sym_hashes (abfd) [index]; + sym_hash = elf_sym_hashes (abfd) [sym_index]; if (isym.st_shndx == sec_shndx && ((sym_hash)->root.type == bfd_link_hash_defined |