]> source.dussan.org Git - tigervnc.git/commitdiff
Silence clang deprecated warnings on macOS
authorPierre Ossman <ossman@cendio.se>
Fri, 29 May 2020 16:58:11 +0000 (18:58 +0200)
committerPierre Ossman <ossman@cendio.se>
Sun, 31 May 2020 09:06:55 +0000 (11:06 +0200)
We still target a very old version of macOS, which tends to make clang
very upset, so we need to turn off depercation warnings.

config.h.in

index 2d7a741a2ffc394efdcf7f28423319ea206246ea..30c0dc4642295fbc69dc25c631a9cb465f77e44d 100644 (file)
@@ -17,3 +17,8 @@
         typedef long ssize_t;
     #endif
 #endif
+
+/* We know we use deprecated stuff, it's to support older macOS */
+#if defined(__APPLE__) && defined(__clang__)
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
+#endif