aboutsummaryrefslogtreecommitdiff
path: root/gold/compressed_output.cc
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2009-12-11 13:42:17 +0000
committerNick Clifton <nickc@redhat.com>2009-12-11 13:42:17 +0000
commit91d6fa6a035cc7d0b7be5c99c194a64cb80924b0 (patch)
tree214507c313b77d619b52afcae2af0b02c9fa700b /gold/compressed_output.cc
parent01fe1b4183324882e88e8c64748bffdc69ea3a9c (diff)
downloadgdb-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 'gold/compressed_output.cc')
-rw-r--r--gold/compressed_output.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/gold/compressed_output.cc b/gold/compressed_output.cc
index a0f8ed1..814bd25 100644
--- a/gold/compressed_output.cc
+++ b/gold/compressed_output.cc
@@ -1,6 +1,6 @@
// compressed_output.cc -- manage compressed output sections for gold
-// Copyright 2007, 2008 Free Software Foundation, Inc.
+// Copyright 2007, 2008, 2009 Free Software Foundation, Inc.
// Written by Ian Lance Taylor <iant@google.com>.
// This file is part of gold.
@@ -137,14 +137,14 @@ Output_compressed_section::set_final_data_size()
void
Output_compressed_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->data_ == NULL)
- memcpy(view, this->postprocessing_buffer(), data_size);
+ memcpy(view, this->postprocessing_buffer(), datasize);
else
- memcpy(view, this->data_, data_size);
- of->write_output_view(offset, data_size, view);
+ memcpy(view, this->data_, datasize);
+ of->write_output_view(off, datasize, view);
}
} // End namespace gold.