@@ -329,6 +329,7 @@ if test "x$enable_werror" = "xyes"; then
329
329
AX_CHECK_COMPILE_FLAG ( [ -Werror=switch] ,[ ERROR_CXXFLAGS="$ERROR_CXXFLAGS -Werror=switch"] ,,[ [ $CXXFLAG_WERROR] ] )
330
330
AX_CHECK_COMPILE_FLAG ( [ -Werror=thread-safety-analysis] ,[ ERROR_CXXFLAGS="$ERROR_CXXFLAGS -Werror=thread-safety-analysis"] ,,[ [ $CXXFLAG_WERROR] ] )
331
331
AX_CHECK_COMPILE_FLAG ( [ -Werror=unused-variable] ,[ ERROR_CXXFLAGS="$ERROR_CXXFLAGS -Werror=unused-variable"] ,,[ [ $CXXFLAG_WERROR] ] )
332
+ AX_CHECK_COMPILE_FLAG ( [ -Werror=date-time] ,[ ERROR_CXXFLAGS="$ERROR_CXXFLAGS -Werror=date-time"] ,,[ [ $CXXFLAG_WERROR] ] )
332
333
fi
333
334
334
335
if test "x$CXXFLAGS_overridden" = "xno"; then
@@ -342,6 +343,7 @@ if test "x$CXXFLAGS_overridden" = "xno"; then
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] ] )
344
345
AX_CHECK_COMPILE_FLAG ( [ -Wunused-variable] ,[ WARN_CXXFLAGS="$WARN_CXXFLAGS -Wunused-variable"] ,,[ [ $CXXFLAG_WERROR] ] )
346
+ AX_CHECK_COMPILE_FLAG ( [ -Wdate-time] ,[ WARN_CXXFLAGS="$WARN_CXXFLAGS -Wdate-time"] ,,[ [ $CXXFLAG_WERROR] ] )
345
347
346
348
dnl Some compilers (gcc) ignore unknown -Wno-* options, but warn about all
347
349
dnl unknown options if any other warning is produced. Test the -Wfoo case, and
0 commit comments