]> git.saurik.com Git - bison.git/commitdiff
(_AT_CHECK_PRINTER_AND_DESTRUCTOR): Don't
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 28 Apr 2004 06:06:31 +0000 (06:06 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 28 Apr 2004 06:06:31 +0000 (06:06 +0000)
declare yyerror when using lalr.cc, as GCC 3.4.0 warns about the
unused declaration.

tests/actions.at

index 20a8c28de32720eca2ca075641df1dfc2d40f4d9..d97e9164ce507d29660759021c97f08bc81f2e35 100644 (file)
@@ -336,8 +336,8 @@ AT_DATA_GRAMMAR([[input.y]],
 %{
 ]AT_LALR1_CC_IF([typedef yy::Location YYLTYPE;])
 [static int yylex (]AT_LEX_FORMALS[);
-static void yyerror (const char *msg);
-%}
+]AT_LALR1_CC_IF([], [static void yyerror (const char *msg);])
+[%}
 
 %type <ival> 'x' ';' thing line input