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 /gold/reduced_debug_output.cc | |
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 'gold/reduced_debug_output.cc')
-rw-r--r-- | gold/reduced_debug_output.cc | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/gold/reduced_debug_output.cc b/gold/reduced_debug_output.cc index 5bc8053f97..d2b0e3d0ab 100644 --- a/gold/reduced_debug_output.cc +++ b/gold/reduced_debug_output.cc @@ -1,6 +1,6 @@ // reduced_debug_output.cc -- output reduced debugging information to save space -// Copyright 2008 Free Software Foundation, Inc. +// Copyright 2008, 2009 Free Software Foundation, Inc. // Written by Caleb Howe <cshowe@google.com>. // This file is part of gold. @@ -213,15 +213,15 @@ Output_reduced_debug_abbrev_section::set_final_data_size() void Output_reduced_debug_abbrev_section::do_write(Output_file* of) { - off_t offset = this->offset(); - off_t data_size = this->data_size(); - unsigned char* view = of->get_output_view(offset, data_size); + off_t off = this->offset(); + off_t datasize = this->data_size(); + unsigned char* view = of->get_output_view(off, datasize); if (this->failed_) memcpy(view, this->postprocessing_buffer(), this->postprocessing_buffer_size()); else - memcpy(view, &this->data_.front(), data_size); - of->write_output_view(offset, data_size, view); + memcpy(view, &this->data_.front(), datasize); + of->write_output_view(off, datasize, view); } // Locates the abbreviation with abbreviation_number abbrev_number in the @@ -353,15 +353,15 @@ void Output_reduced_debug_info_section::set_final_data_size() void Output_reduced_debug_info_section::do_write(Output_file* of) { - off_t offset = this->offset(); - off_t data_size = this->data_size(); - unsigned char* view = of->get_output_view(offset, data_size); + off_t off = this->offset(); + off_t datasize = this->data_size(); + unsigned char* view = of->get_output_view(off, datasize); if (this->failed_) memcpy(view, this->postprocessing_buffer(), this->postprocessing_buffer_size()); else - memcpy(view, &this->data_.front(), data_size); - of->write_output_view(offset, data_size, view); + memcpy(view, &this->data_.front(), datasize); + of->write_output_view(off, datasize, view); } } // End namespace gold. |