From 6699aa4aeea17acb4751f1bdbf259e16f9ad0033 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Thu, 15 Dec 2011 18:37:31 -0500 Subject: [PATCH] crypto/tls: quiet build 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pkg/crypto/tls/root_darwin.go b/src/pkg/crypto/tls/root_darwin.go index 15122416bd..db1b18b3c0 100644 --- a/src/pkg/crypto/tls/root_darwin.go +++ b/src/pkg/crypto/tls/root_darwin.go @@ -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 #include -- 2.48.1