diff options
author | Pavel Janík <Pavel@Janik.cz> | 2016-09-22 16:36:03 +0200 |
---|---|---|
committer | Pavel Janík <Pavel@Janik.cz> | 2016-09-22 16:36:03 +0200 |
commit | fd5654cab1e5d317119f747abd245c620e8ba29b (patch) | |
tree | 76a540e03a73975ed92042b3aa1a9e3bd9028c97 /configure.ac | |
parent | 26b370a93700d81ab92b528c3194bd90234b07ce (diff) |
Check and enable -Wshadow by default.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 25b828f18c..c95489d4d7 100644 --- a/configure.ac +++ b/configure.ac @@ -203,6 +203,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 |