From: Pierre Ossman Date: Fri, 29 May 2020 16:58:11 +0000 (+0200) Subject: Silence clang deprecated warnings on macOS X-Git-Tag: v1.10.90~25^2~4 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=79d1747a272a4f7810a177daa6c582e068c9cee8;p=tigervnc.git 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. --- 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