diff --git a/m4macros/ax_cpp11.m4 b/m4macros/ax_cpp11.m4 index 0b2b05cd58..86f3ec4359 100644 --- a/m4macros/ax_cpp11.m4 +++ b/m4macros/ax_cpp11.m4 @@ -229,7 +229,7 @@ for retry in "none" "--std=c++11" "--std=c++0x" "--std=c++1x" "fail"; do AC_MSG_CHECKING(noreturn support) feature="noreturn" - CPPFLAGS="-Werror -Wimplicit-fallthrough $CPPFLAGS" + CPPFLAGS="-Werror=implicit-fallthrough -Wimplicit-fallthrough $CPPFLAGS" AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( [#include