From 4f879f778187697b508808482b7180e7f6741c0c Mon Sep 17 00:00:00 2001 From: Tom Schoonjans Date: Tue, 25 Feb 2020 15:38:45 +0000 Subject: [PATCH] xmi_solid_angle_cl: fix OpenCL preprocessor warning --- src/xmi_solid_angle_cl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/xmi_solid_angle_cl.c b/src/xmi_solid_angle_cl.c index 335af6c0..34ccccac 100644 --- a/src/xmi_solid_angle_cl.c +++ b/src/xmi_solid_angle_cl.c @@ -35,6 +35,9 @@ along with this program. If not, see . // Silence warnings about using deprecated OpenCL 1.2 functions. #define CL_USE_DEPRECATED_OPENCL_1_2_APIS +// Silence warnings on Ubuntu +#define CL_TARGET_OPENCL_VERSION 110 + #ifdef HAVE_OPENCL_CL_H #include #elif defined(HAVE_CL_CL_H)