From c4bd5bf7c5b63334e8bb67af294800d4aec0fe06 Mon Sep 17 00:00:00 2001 From: "Joel E. Denny" Date: Sun, 15 Oct 2006 00:02:21 +0000 Subject: [PATCH] Fix testsuite for ./configure --enable-gcc-warnings: * configure.ac (gcc-warnings): Move -Wall before -Wno-sign-compare. Otherwise, gcc 4.1.0 (at least) warns about sign comparisons in __AT_CHECK_PRINTER_AND_DESTRUCTOR in tests/actions.at. * test/input.at (Torturing the Scanner): #include for abort. * test/regression.at (Diagnostic that expects two alternatives): Likewise. --- ChangeLog | 10 ++++++++++ configure.ac | 2 +- tests/input.at | 1 + tests/regression.at | 1 + 4 files changed, 13 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 4f6b5a02..9fed16bb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2006-10-14 Joel E. Denny + + Fix testsuite for ./configure --enable-gcc-warnings: + * configure.ac (gcc-warnings): Move -Wall before -Wno-sign-compare. + Otherwise, gcc 4.1.0 (at least) warns about sign comparisons in + __AT_CHECK_PRINTER_AND_DESTRUCTOR in tests/actions.at. + * test/input.at (Torturing the Scanner): #include for abort. + * test/regression.at (Diagnostic that expects two alternatives): + Likewise. + 2006-10-12 Paul Eggert * bootstrap.conf (gnulib_modules): Add config-h. diff --git a/configure.ac b/configure.ac index 52241669..e71fadb4 100644 --- a/configure.ac +++ b/configure.ac @@ -46,8 +46,8 @@ if test "${enableval}" = yes; then gl_WARNING_CFLAGS([-Werror]) AC_SUBST([WERROR_CFLAGS], [$WARNING_CFLAGS]) WARNING_CFLAGS= - gl_WARNING_CFLAGS([-Wextra -Wno-sign-compare]) gl_WARNING_CFLAGS([-Wall]) + gl_WARNING_CFLAGS([-Wextra -Wno-sign-compare]) gl_WARNING_CFLAGS([-Wcast-align]) gl_WARNING_CFLAGS([-Wcast-qual]) gl_WARNING_CFLAGS([-Wformat]) diff --git a/tests/input.at b/tests/input.at index f6eb33c4..dedd6563 100644 --- a/tests/input.at +++ b/tests/input.at @@ -396,6 +396,7 @@ char apostrophe = '\''; #endif #include +#include %} /* %{ and %} can be here too. */ diff --git a/tests/regression.at b/tests/regression.at index 6a0703ae..761e1bed 100644 --- a/tests/regression.at +++ b/tests/regression.at @@ -959,6 +959,7 @@ m4_define([_AT_DATA_EXPECT2_Y], static int yylex (AT_LALR1_CC_IF([int *], [void])); AT_LALR1_CC_IF([], [#include +#include static void yyerror (const char *);]) %} $1 -- 2.47.2