|
|
|
@ -430,7 +430,13 @@ if test "x$enable_werror" = "xyes"; then
|
|
|
|
|
AX_CHECK_COMPILE_FLAG([-Werror=range-loop-analysis],[ERROR_CXXFLAGS="$ERROR_CXXFLAGS -Werror=range-loop-analysis"],,[[$CXXFLAG_WERROR]])
|
|
|
|
|
AX_CHECK_COMPILE_FLAG([-Werror=unused-variable],[ERROR_CXXFLAGS="$ERROR_CXXFLAGS -Werror=unused-variable"],,[[$CXXFLAG_WERROR]])
|
|
|
|
|
AX_CHECK_COMPILE_FLAG([-Werror=date-time],[ERROR_CXXFLAGS="$ERROR_CXXFLAGS -Werror=date-time"],,[[$CXXFLAG_WERROR]])
|
|
|
|
|
AX_CHECK_COMPILE_FLAG([-Werror=return-type],[ERROR_CXXFLAGS="$ERROR_CXXFLAGS -Werror=return-type"],,[[$CXXFLAG_WERROR]])
|
|
|
|
|
|
|
|
|
|
dnl -Wreturn-type is broken in GCC for MinGW-w64.
|
|
|
|
|
dnl https://sourceforge.net/p/mingw-w64/bugs/306/
|
|
|
|
|
AX_CHECK_COMPILE_FLAG([-Werror=return-type], [ERROR_CXXFLAGS="$ERROR_CXXFLAGS -Werror=return-type"], [], [$CXXFLAG_WERROR],
|
|
|
|
|
[AC_LANG_SOURCE([[#include <cassert>
|
|
|
|
|
int f(){ assert(false); }]])])
|
|
|
|
|
|
|
|
|
|
AX_CHECK_COMPILE_FLAG([-Werror=conditional-uninitialized],[ERROR_CXXFLAGS="$ERROR_CXXFLAGS -Werror=conditional-uninitialized"],,[[$CXXFLAG_WERROR]])
|
|
|
|
|
AX_CHECK_COMPILE_FLAG([-Werror=sign-compare],[ERROR_CXXFLAGS="$ERROR_CXXFLAGS -Werror=sign-compare"],,[[$CXXFLAG_WERROR]])
|
|
|
|
|
dnl -Wsuggest-override is broken with GCC before 9.2
|
|
|
|
|