aboutsummaryrefslogtreecommitdiff
path: root/arm_compute/core/CL/OpenCL.h
diff options
context:
space:
mode:
Diffstat (limited to 'arm_compute/core/CL/OpenCL.h')
-rw-r--r--arm_compute/core/CL/OpenCL.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/arm_compute/core/CL/OpenCL.h b/arm_compute/core/CL/OpenCL.h
index 44e886564a..33053308ec 100644
--- a/arm_compute/core/CL/OpenCL.h
+++ b/arm_compute/core/CL/OpenCL.h
@@ -31,10 +31,14 @@
#ifndef ARM_COMPUTE_NO_EXCEPTIONS
#define CL_HPP_ENABLE_EXCEPTIONS
#endif // ARM_COMPUTE_NO_EXCEPTIONS
-#define CL_HPP_CL_1_2_DEFAULT_BUILD
+#define CL_TARGET_OPENCL_VERSION 200
#define CL_HPP_TARGET_OPENCL_VERSION 110
#define CL_HPP_MINIMUM_OPENCL_VERSION 110
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Weffc++"
+#pragma GCC diagnostic ignored "-Wignored-qualifiers"
#include <CL/cl2.hpp>
+#pragma GCC diagnostic pop
namespace cl
{