mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 04:13:03 +00:00
tests: address a warning from GCC 4.4
236. torture.at:465: testing Exploding the Stack Size with Alloca ... ../../../tests/torture.at:474: bison -o input.c input.y ../../../tests/torture.at:474: $CC $CFLAGS $CPPFLAGS $LDFLAGS -o input input.c $LIBS stderr: cc1: warnings being treated as errors input.y: In function 'main': input.y:60: error: 'status' may be used uninitialized in this function * tests/torture.at (AT_DATA_STACK_TORTURE): Initial status to avoid the previous error.
This commit is contained in:
@@ -431,7 +431,7 @@ int
|
|||||||
main (int argc, const char **argv)
|
main (int argc, const char **argv)
|
||||||
{
|
{
|
||||||
YYSTYPE yylval_init = get_args (argc, argv);
|
YYSTYPE yylval_init = get_args (argc, argv);
|
||||||
int status;
|
int status = 0;
|
||||||
int count;
|
int count;
|
||||||
]m4_bmatch([$2], [api.push-pull both],
|
]m4_bmatch([$2], [api.push-pull both],
|
||||||
[[ yypstate *ps = yypstate_new ();
|
[[ yypstate *ps = yypstate_new ();
|
||||||
|
|||||||
Reference in New Issue
Block a user