From 5413b5486ba77949122a8bfd6067d31626e330f3 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Fri, 11 Dec 2009 13:41:59 +0000 Subject: Add -Wshadow to the gcc command line options used when compiling the binutils. Fix up all warnings generated by the addition of this switch. --- bfd/warning.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bfd/warning.m4') diff --git a/bfd/warning.m4 b/bfd/warning.m4 index 0b0bf2f7f8..b4a2f48f8b 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], -- cgit v1.2.1