[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 6/6] tests: address a warning from GCC 4.4
From: |
Akim Demaille |
Subject: |
[PATCH 6/6] tests: address a warning from GCC 4.4 |
Date: |
Thu, 25 Oct 2012 15:42:44 +0200 |
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.
---
tests/torture.at | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/torture.at b/tests/torture.at
index a5e244b..5aa1890 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 ();
--
1.7.12.2
- [PATCH 0/6] {branch-2.6} Various fixes, Akim Demaille, 2012/10/25
- [PATCH 6/6] tests: address a warning from GCC 4.4,
Akim Demaille <=
- [PATCH 1/6] fix comment, Akim Demaille, 2012/10/25
- [PATCH 5/6] tests: don't use options that Clang does not support, Akim Demaille, 2012/10/25
- [PATCH 3/6] regen, Akim Demaille, 2012/10/25
- [PATCH 4/6] tests: restore the tests on -Werror, Akim Demaille, 2012/10/25
- [PATCH 2/6] parse-gram: update the Bison interface, Akim Demaille, 2012/10/25