From 78bb152a63f711af65364881c434af4c198e1ee0 Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Tue, 17 Dec 2019 06:39:09 +0100 Subject: [PATCH] tests: also check -Wchar-subscripts GCC's -Wchar-subscripts may report issues on platforms where char is unsigned. Unfortunately the current CI does not reproduce the problem. But that would allow contributors to report issues if the warning appears somewhere. See 139d0655947c87f90af08718618feaaca0e558d7. Problem reported by Andy Fiddaman in: https://lists.gnu.org/r/bug-bison/2019-12/msg00021.html * configure.ac (warn_common): Add -Wchar-subscripts. --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 7a80eac1..240ca3d5 100644 --- a/configure.ac +++ b/configure.ac @@ -100,7 +100,8 @@ if test "$enable_gcc_warnings" = yes; then # -Wno-tautological-constant-out-of-range-compare for Clang 3.3 and # 3.4 on GNU/Linux that choke on intprops.h's INT_MULTIPLY_WRAPV, # etc. - warn_common='-Wall -Wextra -Wcast-align + warn_common='-Wall -Wextra + -Wcast-align -Wchar-subscripts -fparse-all-comments -Wdocumentation -Wformat -Wimplicit-fallthrough -Wnull-dereference -Wno-sign-compare -Wno-tautological-constant-out-of-range-compare