diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2003-06-04 05:54:16 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2003-06-04 05:54:16 +0000 |
commit | 848dc439cb25182820ad0ae641d1ef62e1533222 (patch) | |
tree | 494589a77421f9539f283ace718a45b55a47df22 /tests | |
parent | f56f6d78b0a7f672b70211d0abfd33e643601bce (diff) | |
download | bison-848dc439cb25182820ad0ae641d1ef62e1533222.tar.gz |
(_AT_DATA_DANCER_Y): Declare yylex to take
(void) as arg when not pure, since we now assume C89 when building
Bison. Pacify GCC by using parameter.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/regression.at | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/regression.at b/tests/regression.at index 3f83ac46..51495b89 100644 --- a/tests/regression.at +++ b/tests/regression.at @@ -675,11 +675,10 @@ AT_CLEANUP m4_define([_AT_DATA_DANCER_Y], [AT_DATA_GRAMMAR([dancer.y], [%{ -AT_LALR1_CC_IF( -[static int yylex (int *lval);], +static int yylex (AT_LALR1_CC_IF([int *], [void])); +AT_LALR1_CC_IF([], [#include <stdio.h> -static void yyerror (const char *s); -static int yylex ();]) +static void yyerror (const char *);]) %} $1 %token ARROW INVALID NUMBER STRING DATA @@ -753,13 +752,14 @@ yyerror (const char *s) }]) static int -yylex (AT_LALR1_CC_IF([int *lval])) +yylex (AT_LALR1_CC_IF([int *lval], [void])) [{ static int toknum = 0; int tokens[] = { ':', -1 }; + ]AT_LALR1_CC_IF([*lval = 0; /* Pacify GCC. */])[ return tokens[toknum++]; }] |