1
0
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:
Alexander Alekhin
2016-11-10 20:04:08 +03:00
parent 21167b1bf1
commit 497d0fd2e7
+9
View File
@@ -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