summaryrefslogtreecommitdiff
path: root/gold/errors.cc
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2009-12-11 13:41:59 +0000
committerNick Clifton <nickc@redhat.com>2009-12-11 13:41:59 +0000
commit5413b5486ba77949122a8bfd6067d31626e330f3 (patch)
tree6956d71f05d79d40e52fed28668bf9db104a4a04 /gold/errors.cc
parentf28844f209b0de6783df75e402dd1c26f3edb0c7 (diff)
downloadbinutils-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/errors.cc')
-rw-r--r--gold/errors.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/gold/errors.cc b/gold/errors.cc
index 618f9cd643..a7c3ad20e8 100644
--- a/gold/errors.cc
+++ b/gold/errors.cc
@@ -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_()
{
}