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 /gold/fileread.h | |
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 'gold/fileread.h')
-rw-r--r-- | gold/fileread.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gold/fileread.h b/gold/fileread.h index 47c8e0f..2e27d2f 100644 --- a/gold/fileread.h +++ b/gold/fileread.h @@ -246,10 +246,10 @@ class File_read DATA_MMAPPED }; - View(off_t start, section_size_type size, const unsigned char* data, - unsigned int byteshift, bool cache, Data_ownership data_ownership) - : start_(start), size_(size), data_(data), lock_count_(0), - byteshift_(byteshift), cache_(cache), data_ownership_(data_ownership), + View(off_t vstart, section_size_type vsize, const unsigned char* vdata, + unsigned int vbyteshift, bool cache, Data_ownership data_ownership) + : start_(vstart), size_(vsize), data_(vdata), lock_count_(0), + byteshift_(vbyteshift), cache_(cache), data_ownership_(data_ownership), accessed_(true) { } @@ -450,8 +450,8 @@ class File_view friend class File_read; // Callers have to get these via File_read::get_lasting_view. - File_view(File_read& file, File_read::View* view, const unsigned char* data) - : file_(file), view_(view), data_(data) + File_view(File_read& file, File_read::View* view, const unsigned char* vdata) + : file_(file), view_(view), data_(vdata) { } File_read& file_; |