From f6d17c4d02a8fa3c99bae23c0f2ae213e8bd42be Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Tue, 10 Apr 2018 18:55:02 +0200 Subject: [PR target/85056] Address -Wmaybe-uninitialized diagnostic gcc/testsuite/ * gcc.target/nvptx/pr85056.c (main): Initialize "sum". From-SVN: r259288 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.target/nvptx/pr85056.c | 1 + 2 files changed, 6 insertions(+) (limited to 'gcc') diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index f1da5c3..57cf613 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2018-04-10 Thomas Schwinge + + PR target/85056 + * gcc.target/nvptx/pr85056.c (main): Initialize "sum". + 2018-04-10 Jakub Jelinek PR rtl-optimization/85300 diff --git a/gcc/testsuite/gcc.target/nvptx/pr85056.c b/gcc/testsuite/gcc.target/nvptx/pr85056.c index fe7f8af..2471cb8 100644 --- a/gcc/testsuite/gcc.target/nvptx/pr85056.c +++ b/gcc/testsuite/gcc.target/nvptx/pr85056.c @@ -10,6 +10,7 @@ main () { int i, sum; + sum = 0; for (i = 0; i < 10; i++) sum += a[i]; -- cgit v1.1