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.
This commit is contained in:
Pierre Ossman 2020-05-29 18:58:11 +02:00 committed by Lauri Kasanen
parent 47bba8a1e6
commit e2cea31e87

View File

@ -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