Skip to content

Commit cd61f48

Browse files
committed
Fix an error for expected primary-expression before ‘;’ token
1 parent f438630 commit cd61f48

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

template/bison/yacc.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -1476,7 +1476,8 @@ int yychar;
14761476
/* Default value used for initialization, for pacifying older GCCs
14771477
or non-GCC compilers. */
14781478
#ifdef __cplusplus
1479-
static const YYSTYPE yyval_default = YY_INITIAL_VALUE(YYSTYPE());
1479+
static const YYSTYPE yyval_default = {};
1480+
(void) yyval_default;
14801481
#else
14811482
YY_INITIAL_VALUE (static const YYSTYPE yyval_default;)
14821483
#endif

0 commit comments

Comments
 (0)