aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorPavel Janík <Pavel@Janik.cz>2016-09-22 16:36:03 +0200
committerPavel Janík <Pavel@Janik.cz>2016-12-05 11:41:52 +0100
commitad1ae7ae2e90a29fcfaaddee2d5acd025de72cbe (patch)
tree4510073ac88e27548f17b2e832f9fe524c897973 /configure.ac
parent9de90bb749926a51aac15d5998bff3e12425675e (diff)
Check and enable -Wshadow by default.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac1
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 7357e4ec9f..109bbcca7b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -211,6 +211,7 @@ if test "x$CXXFLAGS_overridden" = "xno"; then
AX_CHECK_COMPILE_FLAG([-Wextra],[CXXFLAGS="$CXXFLAGS -Wextra"],,[[$CXXFLAG_WERROR]])
AX_CHECK_COMPILE_FLAG([-Wformat],[CXXFLAGS="$CXXFLAGS -Wformat"],,[[$CXXFLAG_WERROR]])
AX_CHECK_COMPILE_FLAG([-Wformat-security],[CXXFLAGS="$CXXFLAGS -Wformat-security"],,[[$CXXFLAG_WERROR]])
+ AX_CHECK_COMPILE_FLAG([-Wshadow],[CXXFLAGS="$CXXFLAGS -Wshadow"],,[[$CXXFLAG_WERROR]])
## Some compilers (gcc) ignore unknown -Wno-* options, but warn about all
## unknown options if any other warning is produced. Test the -Wfoo case, and