mirror of
https://github.com/opencv/opencv.git
synced 2026-09-19 15:23:23 -05:00
Merge pull request #1860 from alalek:ocl_fix_undef_warn
This commit is contained in:
2
3rdparty/include/opencl/1.2/CL/cl_platform.h
vendored
2
3rdparty/include/opencl/1.2/CL/cl_platform.h
vendored
@@ -92,7 +92,7 @@ extern "C" {
|
|||||||
#define CL_EXT_SUFFIX__VERSION_1_1_DEPRECATED __attribute__((deprecated))
|
#define CL_EXT_SUFFIX__VERSION_1_1_DEPRECATED __attribute__((deprecated))
|
||||||
#define CL_EXT_PREFIX__VERSION_1_1_DEPRECATED
|
#define CL_EXT_PREFIX__VERSION_1_1_DEPRECATED
|
||||||
#endif
|
#endif
|
||||||
#elif _WIN32
|
#elif defined(_WIN32)
|
||||||
#ifdef CL_USE_DEPRECATED_OPENCL_1_0_APIS
|
#ifdef CL_USE_DEPRECATED_OPENCL_1_0_APIS
|
||||||
#define CL_EXT_SUFFIX__VERSION_1_0_DEPRECATED
|
#define CL_EXT_SUFFIX__VERSION_1_0_DEPRECATED
|
||||||
#define CL_EXT_PREFIX__VERSION_1_0_DEPRECATED
|
#define CL_EXT_PREFIX__VERSION_1_0_DEPRECATED
|
||||||
|
|||||||
@@ -5,4 +5,4 @@ endif()
|
|||||||
|
|
||||||
set(the_description "OpenCL-accelerated Computer Vision")
|
set(the_description "OpenCL-accelerated Computer Vision")
|
||||||
ocv_define_module(ocl opencv_core opencv_imgproc opencv_features2d opencv_objdetect opencv_video opencv_calib3d opencv_ml "${OPENCL_LIBRARIES}")
|
ocv_define_module(ocl opencv_core opencv_imgproc opencv_features2d opencv_objdetect opencv_video opencv_calib3d opencv_ml "${OPENCL_LIBRARIES}")
|
||||||
ocv_warnings_disable(CMAKE_CXX_FLAGS -Wshadow -Wundef)
|
ocv_warnings_disable(CMAKE_CXX_FLAGS -Wshadow)
|
||||||
|
|||||||
Reference in New Issue
Block a user