Skip to content

Commit

Permalink
Fix an error for expected primary-expression before ‘;’ token
Browse files Browse the repository at this point in the history
  • Loading branch information
ydah committed Aug 9, 2024
1 parent f438630 commit 338067f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion template/bison/yacc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 338067f

Please sign in to comment.