From 4758f89ddbd2c04e7ae1645758495794c34fc5eb Mon Sep 17 00:00:00 2001 From: Dave Cheney Date: Sun, 18 Nov 2012 08:58:54 +1100 Subject: [PATCH] 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 --- src/pkg/runtime/cgo/cgo.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pkg/runtime/cgo/cgo.go b/src/pkg/runtime/cgo/cgo.go index 414f3da360041..e0d53866830f8 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"