From: Thomas Schwinge Date: Tue, 10 Apr 2018 16:55:02 +0000 (+0200) Subject: [PR target/85056] Address -Wmaybe-uninitialized diagnostic X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f6d17c4d02a8fa3c99bae23c0f2ae213e8bd42be;p=gcc.git [PR target/85056] Address -Wmaybe-uninitialized diagnostic gcc/testsuite/ * gcc.target/nvptx/pr85056.c (main): Initialize "sum". From-SVN: r259288 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index f1da5c359b0..57cf6130d09 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 fe7f8af856e..2471cb83b9e 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];