[opencv] 27/89: build: OSSpinLock deprecation warning

Nobuhiro Iwamatsu iwamatsu at moszumanska.debian.org
Sat May 13 09:57:22 UTC 2017


This is an automated email from the git hooks/post-receive script.

iwamatsu pushed a commit to annotated tag 2.4.13.2
in repository opencv.

commit 497d0fd2e7fc4f1ad11bf2ab5245073a52059c01
Author: Alexander Alekhin <alexander.alekhin at intel.com>
Date:   Thu Nov 10 20:04:08 2016 +0300

    build: OSSpinLock deprecation warning
---
 modules/core/src/system.cpp | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/modules/core/src/system.cpp b/modules/core/src/system.cpp
index f5a1af2..e552723 100644
--- a/modules/core/src/system.cpp
+++ b/modules/core/src/system.cpp
@@ -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

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/opencv.git



More information about the debian-science-commits mailing list