mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 15:23:05 +04:00
build: OSSpinLock deprecation warning
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user