From 933e966fab8148565b72ee81b0f026da66c549f2 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Mon, 10 Jun 2024 15:23:53 +0900 Subject: [PATCH] tools/lrama: update template to stop C++ compiler error --- tools/lrama/template/bison/yacc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/lrama/template/bison/yacc.c b/tools/lrama/template/bison/yacc.c index bcefa03f7..42d875605 100644 --- a/tools/lrama/template/bison/yacc.c +++ b/tools/lrama/template/bison/yacc.c @@ -1475,7 +1475,7 @@ int yychar; /* The semantic value of the lookahead symbol. */ /* Default value used for initialization, for pacifying older GCCs or non-GCC compilers. */ -YY_INITIAL_VALUE (static const YYSTYPE yyval_default;) +YY_INITIAL_VALUE (static YYSTYPE yyval_default;) YYSTYPE yylval YY_INITIAL_VALUE (= yyval_default); /* Location data for the lookahead symbol. */