Revert "Check and enable -Wshadow by default."

This reverts commit fd5654cab1.

This is still causing too many warnings for some compiler combinations,
forget it for now.
This commit is contained in:
Wladimir J. van der Laan 2016-11-09 21:27:49 +01:00
parent e0477f6d20
commit f445d88612
No known key found for this signature in database
GPG key ID: 74810B012346C9A6

View file

@ -203,7 +203,6 @@ 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