ocl: define CL_SILENCE_DEPRECATION on MacOSX
authorAlexander Alekhin <alexander.alekhin@intel.com>
Tue, 26 Mar 2019 10:11:53 +0000 (13:11 +0300)
committerAlexander Alekhin <alexander.alekhin@intel.com>
Tue, 26 Mar 2019 10:11:53 +0000 (13:11 +0300)
modules/core/include/opencv2/core/opencl/runtime/autogenerated/opencl_core.hpp
modules/core/src/opencl/runtime/generator/template/opencl_core.hpp.in
modules/core/src/opencl/runtime/opencl_core.cpp
samples/opencl/opencl-opencv-interop.cpp

index 1d76139..9885e4d 100644 (file)
@@ -47,6 +47,7 @@
 
 #if defined(HAVE_OPENCL_STATIC)
 #if defined __APPLE__
+#define CL_SILENCE_DEPRECATION
 #include <OpenCL/cl.h>
 #else
 #include <CL/cl.h>
index 816550f..d3b1566 100644 (file)
@@ -19,6 +19,7 @@
 #define CL_USE_DEPRECATED_OPENCL_2_0_APIS // eliminate build warning
 
 #ifdef __APPLE__
+#define CL_SILENCE_DEPRECATION
 #include <OpenCL/cl.h>
 #else
 #include <CL/cl.h>