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/dwarf2.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/dwarf2.c')
-rw-r--r-- | bfd/dwarf2.c | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/bfd/dwarf2.c b/bfd/dwarf2.c index 5d504c868c..98e8945d28 100644 --- a/bfd/dwarf2.c +++ b/bfd/dwarf2.c @@ -1468,16 +1468,13 @@ decode_line_info (struct comp_unit *unit, struct dwarf2_debug *stash) line_ptr += 2; break; default: - { - int i; - - /* Unknown standard opcode, ignore it. */ - for (i = 0; i < lh.standard_opcode_lengths[op_code]; i++) - { - (void) read_unsigned_leb128 (abfd, line_ptr, &bytes_read); - line_ptr += bytes_read; - } - } + /* Unknown standard opcode, ignore it. */ + for (i = 0; i < lh.standard_opcode_lengths[op_code]; i++) + { + (void) read_unsigned_leb128 (abfd, line_ptr, &bytes_read); + line_ptr += bytes_read; + } + break; } } @@ -2469,7 +2466,6 @@ place_sections (bfd *abfd, struct dwarf2_debug *stash) asection *sect; bfd_vma last_vma = 0, last_dwarf = 0; bfd_size_type amt; - struct adjusted_section *p; i = 0; for (sect = abfd->sections; sect != NULL; sect = sect->next) |