Dave Cheney  committed 11094b9 Draft

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.


requires: 6843061, iant

  • Participants
  • Parent commits f5b22a4
  • Branches default

Comments (0)

Files changed (1)

File src/pkg/runtime/cgo/cgo.go

 #cgo openbsd LDFLAGS: -lpthread
 #cgo windows LDFLAGS: -lm -mthreads
+#cgo CFLAGS: -Wall -Werror
 import "C"