From: Ian Lance Taylor Date: Tue, 5 Nov 2019 16:06:28 +0000 (-0800) Subject: runtime/cgo: add -Wno-nullability-completeness on Darwin X-Git-Tag: go1.14beta1~394 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=fb37821014fae9fe849689a900049361158111f0;p=gostls13.git 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 Reviewed-by: Tobias Klauser --- 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