Skip to content

Commit fd5654c

Browse files
committed
Check and enable -Wshadow by default.
1 parent 26b370a commit fd5654c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

configure.ac

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ if test "x$CXXFLAGS_overridden" = "xno"; then
203203
AX_CHECK_COMPILE_FLAG([-Wextra],[CXXFLAGS="$CXXFLAGS -Wextra"],,[[$CXXFLAG_WERROR]])
204204
AX_CHECK_COMPILE_FLAG([-Wformat],[CXXFLAGS="$CXXFLAGS -Wformat"],,[[$CXXFLAG_WERROR]])
205205
AX_CHECK_COMPILE_FLAG([-Wformat-security],[CXXFLAGS="$CXXFLAGS -Wformat-security"],,[[$CXXFLAG_WERROR]])
206+
AX_CHECK_COMPILE_FLAG([-Wshadow],[CXXFLAGS="$CXXFLAGS -Wshadow"],,[[$CXXFLAG_WERROR]])
206207

207208
## Some compilers (gcc) ignore unknown -Wno-* options, but warn about all
208209
## unknown options if any other warning is produced. Test the -Wfoo case, and

0 commit comments

Comments
 (0)