Index: webrtc/base/macutils.cc |
diff --git a/webrtc/base/macutils.cc b/webrtc/base/macutils.cc |
index 7b1ff4753681acf063126cbca94374d899d68f37..970f5790204b42a751d78a12536f4682a062d8e5 100644 |
--- a/webrtc/base/macutils.cc |
+++ b/webrtc/base/macutils.cc |
@@ -72,7 +72,10 @@ void DecodeFourChar(UInt32 fc, std::string* out) { |
static bool GetGestalt(OSType ostype, int* value) { |
ASSERT(NULL != value); |
SInt32 native_value; |
+ #pragma clang diagnostic push |
+ #pragma clang diagnostic ignored "-Wdeprecated" |
OSStatus result = Gestalt(ostype, &native_value); |
+ #pragma clang diagnostic pop |
if (noErr == result) { |
*value = native_value; |
return true; |
@@ -85,6 +88,8 @@ static bool GetGestalt(OSType ostype, int* value) { |
bool GetOSVersion(int* major, int* minor, int* bugfix) { |
ASSERT(major && minor && bugfix); |
+ #pragma clang diagnostic push |
+ #pragma clang diagnostic ignored "-Wdeprecated" |
if (!GetGestalt(gestaltSystemVersion, major)) { |
return false; |
} |
@@ -97,6 +102,7 @@ bool GetOSVersion(int* major, int* minor, int* bugfix) { |
return GetGestalt(gestaltSystemVersionMajor, major) && |
GetGestalt(gestaltSystemVersionMinor, minor) && |
GetGestalt(gestaltSystemVersionBugFix, bugfix); |
+ #pragma clang diagnostic pop |
} |
MacOSVersionName GetOSVersionName() { |