From 79d1747a272a4f7810a177daa6c582e068c9cee8 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 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 -- 2.39.5