summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorShenghou Ma <minux.ma@gmail.com>2013-04-18 02:33:55 +0800
committerShenghou Ma <minux.ma@gmail.com>2013-04-18 02:33:55 +0800
commit75585c4cef1afed1d31088f516e9a45de2fa0055 (patch)
treee45603d3926ac112aa595de35344e6542940b4ad /misc
parentd637ef1a9b7f68e00e61b1fba184d4b5f7f589eb (diff)
downloadgo-75585c4cef1afed1d31088f516e9a45de2fa0055.tar.gz
misc/cgo/test: fix a gcc warning
See https://code.google.com/p/go/issues/detail?id=5227#c16. R=golang-dev, r CC=golang-dev https://codereview.appspot.com/8833044
Diffstat (limited to 'misc')
-rw-r--r--misc/cgo/test/issue5227.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/cgo/test/issue5227.go b/misc/cgo/test/issue5227.go
index d89a1cabf..336c4c609 100644
--- a/misc/cgo/test/issue5227.go
+++ b/misc/cgo/test/issue5227.go
@@ -17,7 +17,7 @@ Fontinfo SansTypeface;
extern void init();
Fontinfo loadfont() {
- Fontinfo f;
+ Fontinfo f = {0};
return f;
}