]> Cypherpunks repositories - gostls13.git/commitdiff
runtime/cgo: enable warnings and treat as errors
authorDave Cheney <dave@cheney.net>
Sat, 17 Nov 2012 21:58:54 +0000 (08:58 +1100)
committerDave Cheney <dave@cheney.net>
Sat, 17 Nov 2012 21:58:54 +0000 (08:58 +1100)
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

index 414f3da360041974d64fefe77f9088bfdfa76cbd..e0d53866830f8f8888d653db3a8b096a5486b1df 100644 (file)
@@ -18,6 +18,8 @@ package cgo
 #cgo openbsd LDFLAGS: -lpthread
 #cgo windows LDFLAGS: -lm -mthreads
 
+#cgo CFLAGS: -Wall -Werror
+
 */
 import "C"