commit | fb37821014fae9fe849689a900049361158111f0 | [log] [tgz] |
---|---|---|
author | Ian Lance Taylor <iant@golang.org> | Tue Nov 05 08:06:28 2019 -0800 |
committer | Ian Lance Taylor <iant@golang.org> | Tue Nov 05 20:47:22 2019 +0000 |
tree | 2363dbb1c8fa94b1a7c1e00df9f7841472313932 | |
parent | 552987fdbf4c2bc9641016fd323c3ae5d3a0d9a3 [diff] |
runtime/cgo: add -Wno-nullability-completeness on Darwin Fixes #35247 Change-Id: I4f2e243c89e9f745b82bcd181add87fad1443171 Reviewed-on: https://go-review.googlesource.com/c/go/+/205457 Run-TryBot: Ian Lance Taylor <iant@golang.org> Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
diff --git a/src/runtime/cgo/cgo.go b/src/runtime/cgo/cgo.go index 5a2b5e4..5b3c701 100644 --- a/src/runtime/cgo/cgo.go +++ b/src/runtime/cgo/cgo.go
@@ -23,6 +23,9 @@ #cgo aix LDFLAGS: -Wl,-berok #cgo solaris LDFLAGS: -lxnet +// Issue 35247. +#cgo darwin CFLAGS: -Wno-nullability-completeness + #cgo CFLAGS: -Wall -Werror #cgo solaris CPPFLAGS: -D_POSIX_PTHREAD_SEMANTICS