X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/9e32add8e6e9ba278655142e1aa0a85773f18cc7..2a8d363aabf1373d410deb96f5d030ccfed367a6:/tests/cxx-type.at?ds=sidebyside diff --git a/tests/cxx-type.at b/tests/cxx-type.at index 9562b130..61c7f50b 100644 --- a/tests/cxx-type.at +++ b/tests/cxx-type.at @@ -36,7 +36,11 @@ $1 ]m4_bmatch([$2], [stmtMerge], [ static YYSTYPE stmtMerge (YYSTYPE x0, YYSTYPE x1);])[ #define YYINITDEPTH 10 - int yyerror (const char *s); + int yyerror (const char *s +#if YYPURE && YYLSP_NEEDED + , YYLTYPE *yylocation +#endif + ); #if YYPURE ]m4_bmatch([$1], [location], @@ -130,7 +134,7 @@ yylex () break; default: if (isalpha (c)) - { + { i = 0; do @@ -153,8 +157,15 @@ yylex () } int -yyerror (const char *s) +yyerror (const char *s +#if YYPURE && YYLSP_NEEDED + , YYLTYPE *yylocation +#endif + ) { +#if YYPURE && YYLSP_NEEDED + (void) *yylocation; +#endif fprintf (stderr, "%s\n", s); return 0; }