]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
runtime: Initialize variable to avoid compiler warning.
authorIan Lance Taylor <ian@gcc.gnu.org>
Tue, 10 Jun 2014 00:36:38 +0000 (00:36 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 10 Jun 2014 00:36:38 +0000 (00:36 +0000)
From-SVN: r211394

libgo/runtime/chan.c

index cd3a2c5d173c604222bf4764c7863e5809a6be30..2ef78eb3b6fe43ada799cd1de14391ba1effd8d1 100644 (file)
@@ -481,7 +481,7 @@ _Bool runtime_chanrecv2(ChanType *t, Hchan* c, byte* v)
 _Bool
 runtime_chanrecv2(ChanType *t, Hchan* c, byte* v)
 {
-       bool received;
+       bool received = false;
 
        chanrecv(t, c, v, true, &received);
        return received;