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

Unified Diff: crypto/cssm_init.h

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: 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 | « no previous file | crypto/cssm_init.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: crypto/cssm_init.h
diff --git a/crypto/cssm_init.h b/crypto/cssm_init.h
index 3eece1b9c3be12a788a2d2603614782b01d23703..87525d0c6819207ce681e4743ba0e52fab0a4194 100644
--- a/crypto/cssm_init.h
+++ b/crypto/cssm_init.h
@@ -46,11 +46,16 @@ class ScopedCSSMData {
public:
ScopedCSSMData();
~ScopedCSSMData();
+// CSSM functions are deprecated as of OSX 10.7, but have no replacement.
Ryan Sleevi 2016/03/01 15:59:58 A newline between 48/49 would be helpful for reada
erikchen 2016/03/02 02:02:59 It looks like C++14 introduces a deprecated attrib
+// https://bugs.chromium.org/p/chromium/issues/detail?id=590914#c1
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
operator CSSM_DATA*() { return &data_; }
CSSM_DATA* operator ->() { return &data_; }
private:
CSSM_DATA data_;
+#pragma clang diagnostic pop
DISALLOW_COPY_AND_ASSIGN(ScopedCSSMData);
};
« no previous file with comments | « no previous file | crypto/cssm_init.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698