mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 20:33:03 +00:00
maint: pacify gcc 14.2 -Wmaybe-uninitialized
* data/skeletons/lalr1.cc: * data/skeletons/yacc.c: Add YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN and YY_IGNORE_MAYBE_UNINITIALIZED_END to pacify GCC 14, apparently after inlining.
This commit is contained in:
@@ -1531,9 +1531,11 @@ yypull_parse (yypstate *yyps]b4_user_formals[)
|
||||
YYLTYPE yylloc = yyloc_default;]])])[
|
||||
int yystatus;
|
||||
do {
|
||||
]b4_pure_if([[ YYSTYPE yylval;
|
||||
]b4_pure_if([[ YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
|
||||
YYSTYPE yylval;
|
||||
int ]])[yychar = ]b4_yylex[;
|
||||
yystatus = yypush_parse (yyps]b4_pure_if([[, yychar, &yylval]b4_locations_if([[, &yylloc]])])m4_ifset([b4_parse_param], [, b4_args(b4_parse_param)])[);
|
||||
yystatus = yypush_parse (yyps]b4_pure_if([[, yychar, &yylval]b4_locations_if([[, &yylloc]])])m4_ifset([b4_parse_param], [, b4_args(b4_parse_param)])[);]b4_pure_if([[
|
||||
YY_IGNORE_MAYBE_UNINITIALIZED_END]])[
|
||||
} while (yystatus == YYPUSH_MORE);
|
||||
return yystatus;
|
||||
}]])[
|
||||
|
||||
Reference in New Issue
Block a user