summaryrefslogtreecommitdiff
path: root/src/os
diff options
context:
space:
mode:
authorMichael Lutz <michi@icosahedron.de>2021-01-02 17:40:54 +0100
committerMichael Lutz <michi@icosahedron.de>2021-01-03 13:25:32 +0100
commit6ad5489d015fd95af470ebbf4af09ae7512fe9a1 (patch)
tree95c728339017bc77bb9c9d23310153cf2d0786c5 /src/os
parent7bdaabf5f126edd58f3ddb14c71bb4ed2230bf27 (diff)
downloadopenttd-6ad5489d015fd95af470ebbf4af09ae7512fe9a1.tar.xz
Codechange: [OSX] Silence some annoying warnings.
Diffstat (limited to 'src/os')
-rw-r--r--src/os/macosx/macos.mm7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/os/macosx/macos.mm b/src/os/macosx/macos.mm
index 8ecd3a88e..6f0ab8d63 100644
--- a/src/os/macosx/macos.mm
+++ b/src/os/macosx/macos.mm
@@ -72,6 +72,10 @@ void GetMacOSVersion(int *return_major, int *return_minor, int *return_bugfix)
}
#if (MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_10)
+#ifdef __clang__
+# pragma clang diagnostic push
+# pragma clang diagnostic ignored "-Wdeprecated-declarations"
+#endif
SInt32 systemVersion, version_major, version_minor, version_bugfix;
if (Gestalt(gestaltSystemVersion, &systemVersion) == noErr) {
if (systemVersion >= 0x1040) {
@@ -84,6 +88,9 @@ void GetMacOSVersion(int *return_major, int *return_minor, int *return_bugfix)
*return_bugfix = (int)GB(systemVersion, 0, 4);
}
}
+#ifdef __clang__
+# pragma clang diagnostic pop
+#endif
#endif
}