aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2020-05-29 18:58:11 +0200
committerPierre Ossman <ossman@cendio.se>2020-05-31 11:06:55 +0200
commit79d1747a272a4f7810a177daa6c582e068c9cee8 (patch)
treee40f0f46a937675959fb1c18c09330485df21999
parenta336f174cbbd4d3fb3561ebe232394457de35c2f (diff)
downloadtigervnc-79d1747a272a4f7810a177daa6c582e068c9cee8.tar.gz
tigervnc-79d1747a272a4f7810a177daa6c582e068c9cee8.zip
Silence clang deprecated warnings on macOS
We still target a very old version of macOS, which tends to make clang very upset, so we need to turn off depercation warnings.
-rw-r--r--config.h.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/config.h.in b/config.h.in
index 2d7a741a..30c0dc46 100644
--- a/config.h.in
+++ b/config.h.in
@@ -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