From a4196bb6c8a7016145a76587a6a67ffda8444b56 Mon Sep 17 00:00:00 2001 From: Shenghou Ma Date: Thu, 18 Apr 2013 02:33:55 +0800 Subject: [PATCH] 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://golang.org/cl/8833044 --- misc/cgo/test/issue5227.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/cgo/test/issue5227.go b/misc/cgo/test/issue5227.go index d89a1cabf2c..336c4c60910 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; }