diff --git a/modules/core/include/opencv2/core/opencl/runtime/autogenerated/opencl_core.hpp b/modules/core/include/opencv2/core/opencl/runtime/autogenerated/opencl_core.hpp index fdaf469ff1cee7dada0e45311533f14a4db89d71..28618a1f3a6a9e044792d306c6d23233934730fd 100644 --- a/modules/core/include/opencv2/core/opencl/runtime/autogenerated/opencl_core.hpp +++ b/modules/core/include/opencv2/core/opencl/runtime/autogenerated/opencl_core.hpp @@ -96,6 +96,7 @@ #define clWaitForEvents clWaitForEvents_ #if defined __APPLE__ +#define CL_SILENCE_DEPRECATION #include #else #include diff --git a/modules/core/src/opencl/runtime/generator/template/opencl_core.hpp.in b/modules/core/src/opencl/runtime/generator/template/opencl_core.hpp.in index e04fb0b88368d19194945e39cffa88c69c0953ec..a2b5296ff2a9a0cf1f99dd2f120a987a019d70b0 100644 --- a/modules/core/src/opencl/runtime/generator/template/opencl_core.hpp.in +++ b/modules/core/src/opencl/runtime/generator/template/opencl_core.hpp.in @@ -5,6 +5,7 @@ @CL_REMAP_ORIGIN@ #if defined __APPLE__ +#define CL_SILENCE_DEPRECATION #include #else #include diff --git a/modules/core/src/opencl/runtime/opencl_core.cpp b/modules/core/src/opencl/runtime/opencl_core.cpp index 1d761390cc316b73afda3c4245d5708fdd6dafd9..9885e4d6472b2363c3645623cb3eb01ebafe421e 100644 --- a/modules/core/src/opencl/runtime/opencl_core.cpp +++ b/modules/core/src/opencl/runtime/opencl_core.cpp @@ -47,6 +47,7 @@ #if defined(HAVE_OPENCL_STATIC) #if defined __APPLE__ +#define CL_SILENCE_DEPRECATION #include #else #include diff --git a/samples/opencl/opencl-opencv-interop.cpp b/samples/opencl/opencl-opencv-interop.cpp index 816550feaf3243864ec9bbd912c52ea4ede85414..d3b15668a9aff8836b323750cab4403cc1b32c26 100644 --- a/samples/opencl/opencl-opencv-interop.cpp +++ b/samples/opencl/opencl-opencv-interop.cpp @@ -19,6 +19,7 @@ #define CL_USE_DEPRECATED_OPENCL_2_0_APIS // eliminate build warning #ifdef __APPLE__ +#define CL_SILENCE_DEPRECATION #include #else #include