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.
This commit is contained in:
Akim Demaille
2019-01-15 20:42:18 +01:00
parent ad326ada91
commit a634aad9e6

View File

@@ -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