mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 20:33:03 +00:00
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 <stdlib.h> for abort. * test/regression.at (Diagnostic that expects two alternatives): Likewise.
This commit is contained in:
10
ChangeLog
10
ChangeLog
@@ -1,3 +1,13 @@
|
||||
2006-10-14 Joel E. Denny <jdenny@ces.clemson.edu>
|
||||
|
||||
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 <stdlib.h> for abort.
|
||||
* test/regression.at (Diagnostic that expects two alternatives):
|
||||
Likewise.
|
||||
|
||||
2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
|
||||
|
||||
* bootstrap.conf (gnulib_modules): Add config-h.
|
||||
|
||||
@@ -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])
|
||||
|
||||
@@ -396,6 +396,7 @@ char apostrophe = '\'';
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
%}
|
||||
/* %{ and %} can be here too. */
|
||||
|
||||
|
||||
@@ -959,6 +959,7 @@ m4_define([_AT_DATA_EXPECT2_Y],
|
||||
static int yylex (AT_LALR1_CC_IF([int *], [void]));
|
||||
AT_LALR1_CC_IF([],
|
||||
[#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
static void yyerror (const char *);])
|
||||
%}
|
||||
$1
|
||||
|
||||
Reference in New Issue
Block a user