mirror of
https://github.com/opencv/opencv.git
synced 2024-12-01 23:30:06 +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__
|
#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
|
||||||
|
Loading…
Reference in New Issue
Block a user