From 1a488c05429904697e8bca1548700b983d668e2e Mon Sep 17 00:00:00 2001 From: yao Date: Fri, 22 Feb 2013 18:33:16 +0800 Subject: [PATCH] fix the warning on Linux when OpenCL 1.2 not supported --- modules/ocl/src/mcwutil.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/ocl/src/mcwutil.cpp b/modules/ocl/src/mcwutil.cpp index 57ead2cec5..dfbf7b1bbb 100644 --- a/modules/ocl/src/mcwutil.cpp +++ b/modules/ocl/src/mcwutil.cpp @@ -46,6 +46,9 @@ #include "mcwutil.hpp" #if defined (HAVE_OPENCL) +#ifndef CL_VERSION_1_2 +#define CL_VERSION_1_2 0 +#endif using namespace std;