From 1a0aadabd31daf3aa3700197205844f4527938ac Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Tue, 1 Nov 2016 20:15:29 +0100 Subject: [PATCH] opencl: Move declaration of MORPH_BC from .h to .cpp file MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It is only used locally in opencl/openclwrapper.cpp. For all other files which include openclwrapper.h, the compiler complained about an unused static variable: opencl/openclwrapper.h:175:16: warning: ‘MORPH_BC’ defined but not used [-Wunused-variable] Signed-off-by: Stefan Weil --- opencl/openclwrapper.cpp | 2 ++ opencl/openclwrapper.h | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/opencl/openclwrapper.cpp b/opencl/openclwrapper.cpp index d0aab27ff..f35fcd439 100644 --- a/opencl/openclwrapper.cpp +++ b/opencl/openclwrapper.cpp @@ -47,6 +47,8 @@ ds_device OpenclDevice::selectedDevice; int OpenclDevice::isInited = 0; +static l_int32 MORPH_BC = ASYMMETRIC_MORPH_BC; + static const l_uint32 lmask32[] = { 0x80000000, 0xc0000000, 0xe0000000, 0xf0000000, 0xf8000000, 0xfc000000, 0xfe000000, 0xff000000, diff --git a/opencl/openclwrapper.h b/opencl/openclwrapper.h index 85672067b..ae52a8015 100644 --- a/opencl/openclwrapper.h +++ b/opencl/openclwrapper.h @@ -171,9 +171,6 @@ typedef struct _OpenCLEnv } OpenCLEnv; typedef int ( *cl_kernel_function )( void **userdata, KernelEnv *kenv ); - -static l_int32 MORPH_BC = ASYMMETRIC_MORPH_BC; - #define CHECK_OPENCL(status,name) \ if( status != CL_SUCCESS ) \ { \