From: Daniel Salzman Date: Fri, 10 May 2019 09:17:49 +0000 (+0200) Subject: semaphore: mute warning about deprecated functions on macOS X-Git-Tag: v2.9.0~277 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=31c885e08853eccd461488d64a1af488be9fdf8a;p=thirdparty%2Fknot-dns.git semaphore: mute warning about deprecated functions on macOS --- diff --git a/src/contrib/semaphore.c b/src/contrib/semaphore.c index 724443db1c..182bd0a367 100644 --- a/src/contrib/semaphore.c +++ b/src/contrib/semaphore.c @@ -18,6 +18,10 @@ #include +#if defined(__APPLE__) +#pragma clang diagnostic ignored "-Wdeprecated-declarations" +#endif + void knot_sem_init(knot_sem_t *sem, unsigned int value) { int ret = sem_init(&sem->semaphore, 1, value);