Index: webrtc/base/macutils.cc |
diff --git a/webrtc/base/macutils.cc b/webrtc/base/macutils.cc |
index 7b1ff4753681acf063126cbca94374d899d68f37..da21608b46eada16afc6e4065bd74e5f8017369d 100644 |
--- a/webrtc/base/macutils.cc |
+++ b/webrtc/base/macutils.cc |
@@ -72,7 +72,11 @@ void DecodeFourChar(UInt32 fc, std::string* out) { |
static bool GetGestalt(OSType ostype, int* value) { |
ASSERT(NULL != value); |
SInt32 native_value; |
+// TODO(5478): Update deprecated APIs. |
+#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 +89,9 @@ static bool GetGestalt(OSType ostype, int* value) { |
bool GetOSVersion(int* major, int* minor, int* bugfix) { |
ASSERT(major && minor && bugfix); |
+// TODO(5478): Update deprecated APIs. |
+#pragma clang diagnostic push |
+#pragma clang diagnostic ignored "-Wdeprecated" |
if (!GetGestalt(gestaltSystemVersion, major)) { |
return false; |
} |
@@ -97,6 +104,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() { |