From cd61f483bc4002a64ff6645615242117a4883185 Mon Sep 17 00:00:00 2001 From: ydah Date: Fri, 9 Aug 2024 22:49:44 +0900 Subject: [PATCH] =?UTF-8?q?Fix=20an=20error=20for=20expected=20primary-exp?= =?UTF-8?q?ression=20before=20=E2=80=98;=E2=80=99=20token?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/bison/yacc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/template/bison/yacc.c b/template/bison/yacc.c index 95799da5..6edd59a0 100644 --- a/template/bison/yacc.c +++ b/template/bison/yacc.c @@ -1476,7 +1476,8 @@ int yychar; /* Default value used for initialization, for pacifying older GCCs or non-GCC compilers. */ #ifdef __cplusplus -static const YYSTYPE yyval_default = YY_INITIAL_VALUE(YYSTYPE()); +static const YYSTYPE yyval_default = {}; +(void) yyval_default; #else YY_INITIAL_VALUE (static const YYSTYPE yyval_default;) #endif