aboutsummaryrefslogtreecommitdiff
path: root/libgo
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2014-06-10 00:36:38 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2014-06-10 00:36:38 +0000
commit816002df70d65b79158d45d5c690a4d7e061da03 (patch)
treea415f10b5fa90cae15a7388bf478874520a28559 /libgo
parent75b7d07330a00f0da9a5a1d4ef4c89ba8b18bce5 (diff)
downloadgcc-816002df70d65b79158d45d5c690a4d7e061da03.zip
gcc-816002df70d65b79158d45d5c690a4d7e061da03.tar.gz
gcc-816002df70d65b79158d45d5c690a4d7e061da03.tar.bz2
runtime: Initialize variable to avoid compiler warning.
From-SVN: r211394
Diffstat (limited to 'libgo')
-rw-r--r--libgo/runtime/chan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgo/runtime/chan.c b/libgo/runtime/chan.c
index cd3a2c5..2ef78eb 100644
--- a/libgo/runtime/chan.c
+++ b/libgo/runtime/chan.c
@@ -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;