]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 3676: Add compiler check for Shadowed variables
authorAmos Jeffries <squid3@treenet.co.nz>
Tue, 22 Jan 2013 06:29:59 +0000 (19:29 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Tue, 22 Jan 2013 06:29:59 +0000 (19:29 +1300)
configure.ac

index 1e15ea986ba13ecc2022d99533c59476ac658f07..21c960231ff3bff634f9c2f714b0679488bad496 100644 (file)
@@ -317,7 +317,7 @@ dnl Guido Serassio (serassio@squid-cache.org) 20070811
 dnl Using the latest MinGW (gcc 3.4.5 + mingw-runtime 3.13) cannot build with
 dnl -Werror -Wmissing-prototypes -Wmissing-declarations
 dnl TODO: check if the problem will be present in any other newer MinGW release.
-    SQUID_CFLAGS="$squid_cv_cc_option_wall -Wpointer-arith -Wwrite-strings -Wcomments"
+    SQUID_CFLAGS="$squid_cv_cc_option_wall -Wpointer-arith -Wwrite-strings -Wcomments -Wshadow"
     ;;
   freebsd)
     # FreeBSD places local libraries and packages in /usr/local
@@ -326,10 +326,10 @@ dnl TODO: check if the problem will be present in any other newer MinGW release.
     LDFLAGS="$LDFLAGS -L/usr/local/lib -Wl,-R/usr/local/lib"
     ;;
   *)
-    SQUID_CFLAGS="$squid_cv_cc_option_wall -Wpointer-arith -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wcomments"
+    SQUID_CFLAGS="$squid_cv_cc_option_wall -Wpointer-arith -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wcomments -Wshadow"
     ;;
   esac
-  SQUID_CXXFLAGS="$squid_cv_cc_option_wall -Wpointer-arith -Wwrite-strings -Wcomments"
+  SQUID_CXXFLAGS="$squid_cv_cc_option_wall -Wpointer-arith -Wwrite-strings -Wcomments -Wshadow"
 else
   SQUID_CFLAGS=
   SQUID_CXXFLAGS=