From 796759b6f7dc678907f584db3b4b3154032643cc Mon Sep 17 00:00:00 2001 From: SergiySW Date: Thu, 28 Dec 2017 10:49:44 +0300 Subject: [PATCH] Supressing openclwork.cpp deprecation warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit openclwork.cpp:570:13: warning: ‘_cl_command_queue* clCreateCommandQueue(cl_context, cl_device_id, cl_command_queue_properties, cl_int*)’ is deprecated [-Wdeprecated-declarations] queue = clCreateCommandQueue (context, selected_devices [0], 0, &queue_error); --- rai/node/openclwork.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rai/node/openclwork.hpp b/rai/node/openclwork.hpp index 9555b503..a0c2ea29 100644 --- a/rai/node/openclwork.hpp +++ b/rai/node/openclwork.hpp @@ -12,7 +12,8 @@ #ifdef __APPLE__ #include #else -#include +#define CL_USE_DEPRECATED_OPENCL_1_2_APIS +#include #endif namespace rai