mirror of
https://github.com/opencv/opencv.git
synced 2024-11-26 04:00:30 +08:00
build: OSSpinLock deprecation warning
This commit is contained in:
parent
21167b1bf1
commit
497d0fd2e7
@ -908,6 +908,11 @@ int _interlockedExchangeAdd(int* addr, int delta)
|
||||
|
||||
#elif defined __APPLE__
|
||||
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
|
||||
#endif
|
||||
|
||||
#include <libkern/OSAtomic.h>
|
||||
|
||||
struct Mutex::Impl
|
||||
@ -923,6 +928,10 @@ struct Mutex::Impl
|
||||
int refcount;
|
||||
};
|
||||
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic pop
|
||||
#endif
|
||||
|
||||
#elif defined __linux__ && !defined ANDROID && !defined __LINUXTHREADS_OLD__
|
||||
|
||||
struct Mutex::Impl
|
||||
|
Loading…
Reference in New Issue
Block a user