aboutsummaryrefslogtreecommitdiff
path: root/libgo
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2015-08-04 03:39:21 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2015-08-04 03:39:21 +0000
commitf48495834f4cebdd3cbce0ae784a18a870335287 (patch)
tree143149ded2009ee20205e204b5e488f8d36db5c8 /libgo
parent43d56ad78ddc903e61abeaa2efaff2efa2de941d (diff)
downloadgcc-f48495834f4cebdd3cbce0ae784a18a870335287.zip
gcc-f48495834f4cebdd3cbce0ae784a18a870335287.tar.gz
gcc-f48495834f4cebdd3cbce0ae784a18a870335287.tar.bz2
runtime: initialize variable to avoid compiler warning
Reviewed-on: https://go-review.googlesource.com/13095 From-SVN: r226543
Diffstat (limited to 'libgo')
-rw-r--r--libgo/runtime/mprof.goc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgo/runtime/mprof.goc b/libgo/runtime/mprof.goc
index c9022df..4e8cfc9 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);