summaryrefslogtreecommitdiff
path: root/bfd/warning.m4
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
commit0ae5ed34cd818c894f9633ce356d1f39067d6dab (patch)
treec4ff227f63cb55ba2b14b460ba2cd633413fce03 /bfd/warning.m4
parent03978e229064bebbca9f30bd553ae88c82fbb986 (diff)
downloadgdb-0ae5ed34cd818c894f9633ce356d1f39067d6dab.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 'bfd/warning.m4')
-rw-r--r--bfd/warning.m42
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/warning.m4 b/bfd/warning.m4
index 0b0bf2f7f8b..b4a2f48f8ba 100644
--- a/bfd/warning.m4
+++ b/bfd/warning.m4
@@ -1,7 +1,7 @@
dnl Common configure.in fragment
AC_DEFUN([AM_BINUTILS_WARNINGS],[
-GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
+GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow"
AC_ARG_ENABLE(werror,
[ --enable-werror treat compile warnings as errors],