X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/91fd2b60b66a8a63297bf43850d6709bdcbd74dc..0e16927b48c881317a38132923b6f3150802a7d3:/configure.ac?ds=sidebyside diff --git a/configure.ac b/configure.ac index 93955685..6a75d7b4 100644 --- a/configure.ac +++ b/configure.ac @@ -70,7 +70,7 @@ if test "$enable_gcc_warnings" = yes; then -Wcast-qual -Wformat -Wpointer-arith -Wwrite-strings' warn_c='-Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wshadow -Wstrict-prototypes' - warn_cxx='-Wnoexcept -Wzero-as-null-pointer-constant' + warn_cxx='-Wnoexcept' AC_LANG_PUSH([C]) for i in $warn_common $warn_c; do @@ -87,6 +87,8 @@ if test "$enable_gcc_warnings" = yes; then do gl_WARN_ADD([$i], [WARN_CXXFLAGS]) done + gl_WARN_ADD([ -Wzero-as-null-pointer-constant], [WARN_CXXFLAGS], + [AC_LANG_PROGRAM([], [nullptr])]) gl_WARN_ADD([-Werror], [WERROR_CXXFLAGS]) # Warnings for the test suite only. gl_WARN_ADD([-Wundef], [WARN_CXXFLAGS_TEST])