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:
Joel E. Denny
2006-10-15 00:02:21 +00:00
parent 231ed89af1
commit c4bd5bf7c5
4 changed files with 13 additions and 1 deletions

View File

@@ -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