From e2cea31e878f1e32550dc177d6df9f73dcfe69fb Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Fri, 29 May 2020 18:58:11 +0200 Subject: [PATCH] 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. --- config.h.in | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config.h.in b/config.h.in index 2d6db9c..62622db 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