From f48495834f4cebdd3cbce0ae784a18a870335287 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 4 Aug 2015 03:39:21 +0000 Subject: [PATCH] runtime: initialize variable to avoid compiler warning Reviewed-on: https://go-review.googlesource.com/13095 From-SVN: r226543 --- gcc/go/gofrontend/MERGE | 2 +- libgo/runtime/mprof.goc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/go/gofrontend/MERGE b/gcc/go/gofrontend/MERGE index 3c9b886cd62..ed65dfd188b 100644 --- a/gcc/go/gofrontend/MERGE +++ b/gcc/go/gofrontend/MERGE @@ -1,4 +1,4 @@ -a850225433a66a58613c22185c3b09626f5545eb +bdd98c601f2c8dbd0bf821548ba09c038f7645c4 The first line of this file holds the git revision number of the last merge done from the gofrontend repository. diff --git a/libgo/runtime/mprof.goc b/libgo/runtime/mprof.goc index c9022df3dfb..4e8cfc9caca 100644 --- a/libgo/runtime/mprof.goc +++ b/libgo/runtime/mprof.goc @@ -403,7 +403,7 @@ func ThreadCreateProfile(p Slice) (n int, ok bool) { func Stack(b Slice, all bool) (n int) { byte *pc; - bool enablegc; + bool enablegc = false; pc = (byte*)(uintptr)runtime_getcallerpc(&b); -- 2.30.2