X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/60491a948b9339a6f68fafb63b51e9899d4e6aad..4fa887b79078200e910f68b4f34fbd2dfbefc855:/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]]);