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:
Nick Clifton 2009-12-11 13:42:17 +00:00
parent 01fe1b4183
commit 91d6fa6a03
228 changed files with 4810 additions and 4648 deletions

View file

@ -1,6 +1,6 @@
// compressed_output.h -- compressed output sections for gold -*- C++ -*-
// 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.
@ -45,9 +45,9 @@ class Output_compressed_section : public Output_section
{
public:
Output_compressed_section(const General_options* options,
const char* name, elfcpp::Elf_Word flags,
elfcpp::Elf_Xword type)
: Output_section(name, flags, type),
const char* cname, elfcpp::Elf_Word cflags,
elfcpp::Elf_Xword ctype)
: Output_section(cname, cflags, ctype),
options_(options)
{ this->set_requires_postprocessing(); }