@@ -329,6 +329,7 @@ if test "x$enable_werror" = "xyes"; then
329
329
AX_CHECK_COMPILE_FLAG ( [ -Werror=vla] ,[ ERROR_CXXFLAGS="$ERROR_CXXFLAGS -Werror=vla"] ,,[ [ $CXXFLAG_WERROR] ] )
330
330
AX_CHECK_COMPILE_FLAG ( [ -Werror=switch] ,[ ERROR_CXXFLAGS="$ERROR_CXXFLAGS -Werror=switch"] ,,[ [ $CXXFLAG_WERROR] ] )
331
331
AX_CHECK_COMPILE_FLAG ( [ -Werror=thread-safety-analysis] ,[ ERROR_CXXFLAGS="$ERROR_CXXFLAGS -Werror=thread-safety-analysis"] ,,[ [ $CXXFLAG_WERROR] ] )
332
+ AX_CHECK_COMPILE_FLAG ( [ -Werror=unused-variable] ,[ ERROR_CXXFLAGS="$ERROR_CXXFLAGS -Werror=unused-variable"] ,,[ [ $CXXFLAG_WERROR] ] )
332
333
fi
333
334
334
335
if test "x$CXXFLAGS_overridden" = "xno"; then
@@ -341,6 +342,7 @@ if test "x$CXXFLAGS_overridden" = "xno"; then
341
342
AX_CHECK_COMPILE_FLAG ( [ -Wthread-safety-analysis] ,[ WARN_CXXFLAGS="$WARN_CXXFLAGS -Wthread-safety-analysis"] ,,[ [ $CXXFLAG_WERROR] ] )
342
343
AX_CHECK_COMPILE_FLAG ( [ -Wrange-loop-analysis] ,[ WARN_CXXFLAGS="$WARN_CXXFLAGS -Wrange-loop-analysis"] ,,[ [ $CXXFLAG_WERROR] ] )
343
344
AX_CHECK_COMPILE_FLAG ( [ -Wredundant-decls] ,[ WARN_CXXFLAGS="$WARN_CXXFLAGS -Wredundant-decls"] ,,[ [ $CXXFLAG_WERROR] ] )
345
+ AX_CHECK_COMPILE_FLAG ( [ -Wunused-variable] ,[ WARN_CXXFLAGS="$WARN_CXXFLAGS -Wunused-variable"] ,,[ [ $CXXFLAG_WERROR] ] )
344
346
345
347
# # Some compilers (gcc) ignore unknown -Wno-* options, but warn about all
346
348
# # unknown options if any other warning is produced. Test the -Wfoo case, and
0 commit comments