Add -Wshadow to the gcc command line options used when compiling the binutils.
Fix up all warnings generated by the addition of this switch.
This commit is contained in:
parent
01fe1b4183
commit
91d6fa6a03
228 changed files with 4810 additions and 4648 deletions
|
@ -1,6 +1,6 @@
|
|||
// errors.cc -- handle errors for gold
|
||||
|
||||
// Copyright 2006, 2007, 2008 Free Software Foundation, Inc.
|
||||
// Copyright 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
|
||||
// Written by Ian Lance Taylor <iant@google.com>.
|
||||
|
||||
// This file is part of gold.
|
||||
|
@ -38,8 +38,8 @@ namespace gold
|
|||
|
||||
const int Errors::max_undefined_error_report;
|
||||
|
||||
Errors::Errors(const char* program_name)
|
||||
: program_name_(program_name), lock_(NULL), initialize_lock_(&this->lock_),
|
||||
Errors::Errors(const char* prog_name)
|
||||
: program_name_(prog_name), lock_(NULL), initialize_lock_(&this->lock_),
|
||||
error_count_(0), warning_count_(0), undefined_symbols_()
|
||||
{
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue