build: OSSpinLock deprecation warning

This commit is contained in:
Alexander Alekhin 2016-11-10 20:04:08 +03:00
parent 21167b1bf1
commit 497d0fd2e7

View File

@ -908,6 +908,11 @@ int _interlockedExchangeAdd(int* addr, int delta)
#elif defined __APPLE__ #elif defined __APPLE__
#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
#endif
#include <libkern/OSAtomic.h> #include <libkern/OSAtomic.h>
struct Mutex::Impl struct Mutex::Impl
@ -923,6 +928,10 @@ struct Mutex::Impl
int refcount; int refcount;
}; };
#if defined(__clang__)
#pragma clang diagnostic pop
#endif
#elif defined __linux__ && !defined ANDROID && !defined __LINUXTHREADS_OLD__ #elif defined __linux__ && !defined ANDROID && !defined __LINUXTHREADS_OLD__
struct Mutex::Impl struct Mutex::Impl