]> Cypherpunks repositories - gostls13.git/commitdiff
crypto/tls: quiet build
authorRuss Cox <rsc@golang.org>
Thu, 15 Dec 2011 23:37:31 +0000 (18:37 -0500)
committerRuss Cox <rsc@golang.org>
Thu, 15 Dec 2011 23:37:31 +0000 (18:37 -0500)
On a Mac, all the useful functions are deprecated.

R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/5493054

src/pkg/crypto/tls/root_darwin.go

index 15122416bd1ec162c14ebbcb7e00eb4c8b2ed2b7..db1b18b3c07dc7af2868de2dabec1a6bc0edb14a 100644 (file)
@@ -8,7 +8,7 @@ package tls
 // Note: We disable -Werror here because the code in this file uses a deprecated API to stay
 // compatible with both Mac OS X 10.6 and 10.7. Using a deprecated function on Darwin generates
 // a warning.
-#cgo CFLAGS: -Wno-error
+#cgo CFLAGS: -Wno-error -Wno-deprecated-declarations
 #cgo LDFLAGS: -framework CoreFoundation -framework Security
 #include <CoreFoundation/CoreFoundation.h>
 #include <Security/Security.h>