From 55bdf89305c086f1eb4c0d1b96f2a621ec1027e9 Mon Sep 17 00:00:00 2001 From: Nick Bowler Date: Tue, 12 Jul 2011 18:20:12 -0400 Subject: [PATCH] Fix yyerror's signature. This only worked because we ignore those parameters. --- src/parse.y | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/parse.y b/src/parse.y index 706bdd8..c76bc65 100644 --- a/src/parse.y +++ b/src/parse.y @@ -54,7 +54,7 @@ } %code provides { -void yyerror(YYLTYPE *, struct cdecl **, void *, const char *); +void yyerror(YYLTYPE *, void *, struct cdecl **, const char *); int yyparse(void *scanner, struct cdecl **out); } @@ -386,7 +386,8 @@ direct_declarator: { %% void -yyerror(YYLTYPE *loc, struct cdecl **out, yyscan_t scanner, const char *err) +yyerror(YYLTYPE *loc, yyscan_t scanner, struct cdecl **out, + const char *err) { if (strstr(err, "T_LEX_ERROR")) return; -- 2.43.2