mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +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:
@@ -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