X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/e0e5bf84b0e5494553cc1c1c6db599c4033df4df..41442480750e455b137c491f001c23ef1574cf97:/data/yacc.c diff --git a/data/yacc.c b/data/yacc.c index 3b885221..76f73fc7 100644 --- a/data/yacc.c +++ b/data/yacc.c @@ -1265,6 +1265,11 @@ static void yydestruct (int yytype, YYSTYPE yyvalue[]b4_location_if([, YYLTYPE yylocation])) { + /* Pacify ``unused variable'' warnings. */ + (void) yyvalue; +b4_location_if([ (void) yylocation; +])dnl + switch (yytype) { m4_map([b4_symbol_actions], m4_defn([b4_symbol_destructors]))dnl @@ -1283,6 +1288,11 @@ static void yysymprint (FILE* yyout, int yytype, YYSTYPE yyvalue[]b4_location_if([, YYLTYPE yylocation])) { + /* Pacify ``unused variable'' warnings. */ + (void) yyvalue; +b4_location_if([ (void) yylocation; +])dnl + if (yytype < YYNTOKENS) { YYFPRINTF (yyout, "token %s (", yytname[[yytype]]);