From a634aad9e639db7ea204473f2edafc294fb49ca2 Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Tue, 15 Jan 2019 20:42:18 +0100 Subject: [PATCH] configure: don't try to run C++ warnings on C Reported by Derek Clegg. https://lists.gnu.org/archive/html/bison-patches/2019-01/msg00066.html * configure.ac: here. --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 23aeb86d..a3a471af 100644 --- a/configure.ac +++ b/configure.ac @@ -98,9 +98,9 @@ if test "$enable_gcc_warnings" = yes; then -fparse-all-comments -Wdocumentation -Wformat -Wimplicit-fallthrough -Wnull-dereference -Wpointer-arith -Wshadow - -Wundefined-func-template -Wwrite-strings' + -Wwrite-strings' warn_c='-Wbad-function-cast -Wstrict-prototypes' - warn_cxx='-Wextra-semi -Wnoexcept' + warn_cxx='-Wextra-semi -Wnoexcept -Wundefined-func-template' # Warnings for the test suite only. # # -fno-color-diagnostics: Clang's use of colors in the error