From 2b020d59f95b8c3fa7003e0da0d97f5d37e722a7 Mon Sep 17 00:00:00 2001 From: Cedric Nugteren Date: Sat, 23 Dec 2017 15:32:22 +0100 Subject: Added defines to disable OpenCL deprecation warnings --- src/clpp11.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/clpp11.hpp b/src/clpp11.hpp index efb1bcfa..6ebf1322 100644 --- a/src/clpp11.hpp +++ b/src/clpp11.hpp @@ -46,7 +46,9 @@ #include // fprintf, stderr // OpenCL +#define CL_USE_DEPRECATED_OPENCL_1_1_APIS // to disable deprecation warnings #define CL_USE_DEPRECATED_OPENCL_1_2_APIS // to disable deprecation warnings +#define CL_USE_DEPRECATED_OPENCL_2_0_APIS // to disable deprecation warnings #if defined(__APPLE__) || defined(__MACOSX) #include #else -- cgit v1.2.3