diff options
author | Akim Demaille <akim@lrde.epita.fr> | 2012-10-25 14:42:24 +0200 |
---|---|---|
committer | Akim Demaille <akim@lrde.epita.fr> | 2012-10-25 14:42:24 +0200 |
commit | 54dccdb2ca8bafc7c7556c6b1426caa8feaa5ebe (patch) | |
tree | 7396b71e81a2c0c59426098e5651dde34d8d5981 /tests/torture.at | |
parent | 324a5576515921a9c41913833cacde6dadee303a (diff) | |
download | bison-54dccdb2ca8bafc7c7556c6b1426caa8feaa5ebe.tar.gz |
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.
Diffstat (limited to 'tests/torture.at')
-rw-r--r-- | tests/torture.at | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/torture.at b/tests/torture.at index a5e244b6..5aa18900 100644 --- a/tests/torture.at +++ b/tests/torture.at @@ -431,7 +431,7 @@ int main (int argc, const char **argv) { YYSTYPE yylval_init = get_args (argc, argv); - int status; + int status = 0; int count; ]m4_bmatch([$2], [api.push-pull both], [[ yypstate *ps = yypstate_new (); |