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:
Paul Eggert
2025-03-12 20:40:29 -07:00
parent aa0c96bf14
commit 6a4b3240cf
2 changed files with 6 additions and 2 deletions

View File

@@ -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;
}]])[