From 68dd2dd0b5bd287a50a12b03683c28b2bec55b6d Mon Sep 17 00:00:00 2001 From: Ivo Raisr Date: Thu, 18 Feb 2016 18:10:05 +0000 Subject: [PATCH] Fix compiler warning about using uninitialized variable 'arr'. Reported by gcc 5.3. The test outcome remains unchanged. n-i-bz git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15798 --- none/tests/solaris/stack-overflow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/none/tests/solaris/stack-overflow.c b/none/tests/solaris/stack-overflow.c index 0ebbfbb8b2..60f1b7ef8f 100644 --- a/none/tests/solaris/stack-overflow.c +++ b/none/tests/solaris/stack-overflow.c @@ -2,4 +2,4 @@ Written in a single line so there is no confusion on what line the overflow occurs. */ -int main(int argc, char *argv[]) { volatile int arr[1000]; return main(arr[argc%2], 0); } +int main(int argc, char *argv[]) { volatile int arr[1000] = {0}; return main(arr[argc%2], 0); } -- 2.47.2