opencl: Avoid deprecation warning for OpenCL 1.2 APIs.

Sebastian Lackner sebastian at fds-team.de
Tue Sep 22 08:40:40 CDT 2015


In the latest version of OpenCL on Archlinux additional deprecation
warnings were added which breaks compilation with -Werror, for example:

extern CL_API_ENTRY CL_EXT_PREFIX__VERSION_1_2_DEPRECATED cl_command_queue CL_API_CALL
clCreateCommandQueue(...) CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED;

Signed-off-by: Sebastian Lackner <sebastian at fds-team.de>
---
 dlls/opencl/opencl.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/opencl/opencl.c b/dlls/opencl/opencl.c
index f690733..2d145bf 100644
--- a/dlls/opencl/opencl.c
+++ b/dlls/opencl/opencl.c
@@ -32,6 +32,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(opencl);
 
 #if defined(HAVE_CL_CL_H)
 #define CL_USE_DEPRECATED_OPENCL_1_1_APIS
+#define CL_USE_DEPRECATED_OPENCL_1_2_APIS
 #define CL_USE_DEPRECATED_OPENCL_2_0_APIS
 #include <CL/cl.h>
 #elif defined(HAVE_OPENCL_OPENCL_H)
-- 
2.5.1



More information about the wine-patches mailing list