aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/cgo
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2019-11-05 08:06:28 -0800
committerIan Lance Taylor <iant@golang.org>2019-11-05 20:47:22 +0000
commitfb37821014fae9fe849689a900049361158111f0 (patch)
tree2363dbb1c8fa94b1a7c1e00df9f7841472313932 /src/runtime/cgo
parent552987fdbf4c2bc9641016fd323c3ae5d3a0d9a3 (diff)
downloadgo-fb37821014fae9fe849689a900049361158111f0.tar.gz
go-fb37821014fae9fe849689a900049361158111f0.zip
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>
Diffstat (limited to 'src/runtime/cgo')
-rw-r--r--src/runtime/cgo/cgo.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/runtime/cgo/cgo.go b/src/runtime/cgo/cgo.go
index 5a2b5e4271..5b3c701309 100644
--- a/src/runtime/cgo/cgo.go
+++ b/src/runtime/cgo/cgo.go
@@ -23,6 +23,9 @@ package cgo
#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