From: Dave Cheney Date: Sat, 17 Nov 2012 21:58:54 +0000 (+1100) Subject: runtime/cgo: enable warnings and treat as errors X-Git-Tag: go1.1rc2~1844 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=4758f89ddbd2c04e7ae1645758495794c34fc5eb;p=gostls13.git runtime/cgo: enable warnings and treat as errors Enable warnings as errors during the cgo portion of runtime/cgo. iant requested that the list of flags match cmd/dist/build.c, but I would like to avoid the set of disabled warnings if possible. ref: https://groups.google.com/d/topic/golang-nuts/TrCoVzIIG4M/discussion requires: 6843061 R=minux.ma, iant CC=golang-dev https://golang.org/cl/6852055 --- diff --git a/src/pkg/runtime/cgo/cgo.go b/src/pkg/runtime/cgo/cgo.go index 414f3da360..e0d5386683 100644 --- a/src/pkg/runtime/cgo/cgo.go +++ b/src/pkg/runtime/cgo/cgo.go @@ -18,6 +18,8 @@ package cgo #cgo openbsd LDFLAGS: -lpthread #cgo windows LDFLAGS: -lm -mthreads +#cgo CFLAGS: -Wall -Werror + */ import "C"