diff options
author | Cedric Nugteren <web@cedricnugteren.nl> | 2017-12-23 15:32:22 +0100 |
---|---|---|
committer | Cedric Nugteren <web@cedricnugteren.nl> | 2017-12-23 15:32:22 +0100 |
commit | 2b020d59f95b8c3fa7003e0da0d97f5d37e722a7 (patch) | |
tree | ab43faffbf5b6a132bc33bfff381471639fae79b /src/clpp11.hpp | |
parent | 04bf5437bce23b0dfbb79ff2c18278bdad2e17a6 (diff) |
Added defines to disable OpenCL deprecation warnings
Diffstat (limited to 'src/clpp11.hpp')
-rw-r--r-- | src/clpp11.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
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 <cstdio> // 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 <OpenCL/opencl.h> #else |