mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-02 22:29:21 +00:00
Suppress deprecation warning.
This commit is contained in:
parent
fe73ae8526
commit
efef07293b
1 changed files with 6 additions and 0 deletions
|
@ -154,9 +154,15 @@ void DolphinAnalytics::MakeBaseBuilder()
|
||||||
builder.AddData("os-type", "osx");
|
builder.AddData("os-type", "osx");
|
||||||
|
|
||||||
SInt32 osxmajor, osxminor, osxbugfix;
|
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(gestaltSystemVersionMajor, &osxmajor);
|
||||||
Gestalt(gestaltSystemVersionMinor, &osxminor);
|
Gestalt(gestaltSystemVersionMinor, &osxminor);
|
||||||
Gestalt(gestaltSystemVersionBugFix, &osxbugfix);
|
Gestalt(gestaltSystemVersionBugFix, &osxbugfix);
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
|
|
||||||
builder.AddData("osx-ver-major", osxmajor);
|
builder.AddData("osx-ver-major", osxmajor);
|
||||||
builder.AddData("osx-ver-minor", osxminor);
|
builder.AddData("osx-ver-minor", osxminor);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue