summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorcomex <comexk@gmail.com>2016-06-25 23:52:32 -0400
committercomex <comexk@gmail.com>2016-06-26 00:49:51 -0400
commitefef07293b5978bcf9a06d8b0c4f20819ecc62cd (patch)
tree6cf6d374d91495f07d9c48ba3522b02c56f10102 /Source/Core
parentfe73ae85262e7e8722deaa73835f4d230f97bc29 (diff)
Suppress deprecation warning.
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Core/Analytics.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/Core/Core/Analytics.cpp b/Source/Core/Core/Analytics.cpp
index 0c0bb813b1..f423527d34 100644
--- a/Source/Core/Core/Analytics.cpp
+++ b/Source/Core/Core/Analytics.cpp
@@ -154,9 +154,15 @@ void DolphinAnalytics::MakeBaseBuilder()
builder.AddData("os-type", "osx");
SInt32 osxmajor, osxminor, osxbugfix;
+// Gestalt is deprecated, but the replacement (NSProcessInfo
+// operatingSystemVersion) is only available on OS X 10.10, so we need to use
+// it anyway. Change this someday when Dolphin depends on 10.10+.
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
Gestalt(gestaltSystemVersionMajor, &osxmajor);
Gestalt(gestaltSystemVersionMinor, &osxminor);
Gestalt(gestaltSystemVersionBugFix, &osxbugfix);
+#pragma GCC diagnostic pop
builder.AddData("osx-ver-major", osxmajor);
builder.AddData("osx-ver-minor", osxminor);