X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/5335b65a79189afbbd27ecb55d76e74a4fe31863..1625df5b18bc1ad696f149f059e6677ca0759dfc:/data/yacc.c diff --git a/data/yacc.c b/data/yacc.c index 11ebbf16..5e7b55fc 100644 --- a/data/yacc.c +++ b/data/yacc.c @@ -609,9 +609,18 @@ static const ]b4_int_type_for([b4_toknum])[ yytoknum[] = /* Like YYERROR except do call yyerror. This remains here temporarily to ease the transition to the new meaning of YYERROR, for GCC. - Once GCC version 2 has supplanted version 1, this can go. */ + Once GCC version 2 has supplanted version 1, this can go. However, + YYFAIL appears to be in use. Nevertheless, it is formally deprecated + in Bison 2.4.2's NEWS entry, where a plan to phase it out is + discussed. */ #define YYFAIL goto yyerrlab +#if defined YYFAIL + /* This is here to suppress warnings from the GCC cpp's + -Wunused-macros. Normally we don't worry about that warning, but + some users do, and we want to make it easy for users to remove + YYFAIL uses, which will produce warnings from Bison 2.5. */ +#endif #define YYRECOVERING() (!!yyerrstatus)