Suppress the clang warning "-Wdeprecated-declarations" for CSSM API calls.
The CSSM API has been deprecated since OSX 10.7, but there is no replacement.
BUG=590914
Review URL: https://codereview.chromium.org/1753553002
Cr-Commit-Position: refs/heads/master@{#378668}
diff --git a/net/cert/cert_verify_proc_mac.cc b/net/cert/cert_verify_proc_mac.cc
index c4e0c41..07a49a2 100644
--- a/net/cert/cert_verify_proc_mac.cc
+++ b/net/cert/cert_verify_proc_mac.cc
@@ -32,6 +32,11 @@
#include "net/cert/x509_certificate.h"
#include "net/cert/x509_util_mac.h"
+// CSSM functions are deprecated as of OSX 10.7, but have no replacement.
+// https://bugs.chromium.org/p/chromium/issues/detail?id=590914#c1
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
+
// From 10.7.2 libsecurity_keychain-55035/lib/SecTrustPriv.h, for use with
// SecTrustCopyExtendedResult.
#ifndef kSecEVOrganizationName
@@ -835,3 +840,5 @@
}
} // namespace net
+
+#pragma clang diagnostic pop // "-Wdeprecated-declarations"