From facfd9c406fe4f304168e2702cd71fd1cbb3eab2 Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Mon, 22 Oct 2018 08:22:53 +0200 Subject: [PATCH] build: enable more warnings during tests Prompted by Derek Clegg. http://lists.gnu.org/archive/html/bug-bison/2018-10/msg00018.html * configure.ac: here. --- configure.ac | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index a569ef7c..f2240100 100644 --- a/configure.ac +++ b/configure.ac @@ -107,7 +107,9 @@ if test "$enable_gcc_warnings" = yes; then # -Wno-keyword-macro: We use the "#define private public" dirty # trick in the test suite to check some private implementation # details for lalr1.cc. - warn_tests='-Wundef -pedantic -Wdeprecated -Wsign-compare -fno-color-diagnostics + warn_tests='-Wundef -pedantic -Wconversion + -Wdeprecated -Wsign-compare -Wsign-conversion + -fno-color-diagnostics -Wno-keyword-macro' AC_LANG_PUSH([C]) @@ -137,7 +139,7 @@ if test "$enable_gcc_warnings" = yes; then AS_VAR_APPEND([WARN_CFLAGS], [" $WARN_CFLAGS_TEST"]) # Warnings for the test suite only. - for i in $warn_tests; + for i in $warn_tests -Wincompatible-pointer-types; do gl_WARN_ADD([$i], [WARN_CFLAGS_TEST]) done