Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(543)

Unified Diff: crypto/cssm_init.cc

Issue 1753553002: Suppress the clang warning "-Wdeprecated-declarations" for CSSM API calls. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@temp5_gtm2
Patch Set: nits Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « crypto/cssm_init.h ('k') | net/base/keygen_handler_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: crypto/cssm_init.cc
diff --git a/crypto/cssm_init.cc b/crypto/cssm_init.cc
index 6fa585abb3416ca1760d3f4d5b2b0c22374e6eed..e9bef7c8ba871389a74fc852d9bd768040f16667 100644
--- a/crypto/cssm_init.cc
+++ b/crypto/cssm_init.cc
@@ -19,6 +19,11 @@
// - Apple Cryptographic Service Provider Functional Specification
// - CryptoSample: http://developer.apple.com/SampleCode/CryptoSample/
+// 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"
+
namespace {
void* CSSMMalloc(CSSM_SIZE size, void* alloc_ref) {
@@ -203,3 +208,5 @@ ScopedCSSMData::~ScopedCSSMData() {
}
} // namespace crypto
+
+#pragma clang diagnostic pop // "-Wdeprecated-declarations"
« no previous file with comments | « crypto/cssm_init.h ('k') | net/base/keygen_handler_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698