diff options
author | Nick Clifton <nickc@redhat.com> | 2009-12-11 13:41:59 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2009-12-11 13:41:59 +0000 |
commit | 5413b5486ba77949122a8bfd6067d31626e330f3 (patch) | |
tree | 6956d71f05d79d40e52fed28668bf9db104a4a04 /bfd/oasys.c | |
parent | f28844f209b0de6783df75e402dd1c26f3edb0c7 (diff) | |
download | binutils-redhat-5413b5486ba77949122a8bfd6067d31626e330f3.tar.gz |
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/oasys.c')
-rw-r--r-- | bfd/oasys.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/bfd/oasys.c b/bfd/oasys.c index 17714ec207..a3ef7526e9 100644 --- a/bfd/oasys.c +++ b/bfd/oasys.c @@ -786,7 +786,7 @@ oasys_write_syms (bfd *abfd) { unsigned int count; asymbol **generic = bfd_get_outsymbols (abfd); - unsigned int index = 0; + unsigned int sym_index = 0; for (count = 0; count < bfd_get_symcount (abfd); count++) { @@ -799,8 +799,8 @@ oasys_write_syms (bfd *abfd) if (bfd_is_com_section (g->section)) { symbol.relb = RELOCATION_TYPE_COM; - H_PUT_16 (abfd, index, symbol.refno); - index++; + H_PUT_16 (abfd, sym_index, symbol.refno); + sym_index++; } else if (bfd_is_abs_section (g->section)) { @@ -810,9 +810,9 @@ oasys_write_syms (bfd *abfd) else if (bfd_is_und_section (g->section)) { symbol.relb = RELOCATION_TYPE_UND; - H_PUT_16 (abfd, index, symbol.refno); - /* Overload the value field with the output index number */ - index++; + H_PUT_16 (abfd, sym_index, symbol.refno); + /* Overload the value field with the output sym_index number */ + sym_index++; } else if (g->flags & BSF_DEBUGGING) /* Throw it away. */ @@ -859,7 +859,7 @@ oasys_write_syms (bfd *abfd) name[0]) + l)) return FALSE; } - g->value = index - 1; + g->value = sym_index - 1; } return TRUE; |