From f864d42db8a515ab8536b8c8ce3cbe12e0ecf3ba Mon Sep 17 00:00:00 2001 From: cristy Date: Mon, 12 Sep 2011 17:57:53 +0000 Subject: [PATCH] --- MagickCore/accelerate.c | 2 ++ configure.ac | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/MagickCore/accelerate.c b/MagickCore/accelerate.c index 61c61bf3d..c223dbecb 100644 --- a/MagickCore/accelerate.c +++ b/MagickCore/accelerate.c @@ -396,6 +396,7 @@ static void DestroyConvolveBuffers(ConvolveInfo *convolve_info) cl_int status; + (void) status; if (convolve_info->convolve_pixels != (cl_mem) NULL) status=clReleaseMemObject(convolve_info->convolve_pixels); if (convolve_info->pixels != (cl_mem) NULL) @@ -409,6 +410,7 @@ static ConvolveInfo *DestroyConvolveInfo(ConvolveInfo *convolve_info) cl_int status; + (void) status; if (convolve_info->kernel != (cl_kernel) NULL) status=clReleaseKernel(convolve_info->kernel); if (convolve_info->program != (cl_program) NULL) diff --git a/configure.ac b/configure.ac index 5ca775390..2e9f36f29 100755 --- a/configure.ac +++ b/configure.ac @@ -417,7 +417,7 @@ CFLAGS="$CL_CFLAGS $CFLAGS" LIBS="$CL_LIBS $LIBS" AC_SUBST(CL_CFLAGS) if test "$enable_opencl" != no; then - if test "_OPENCL" = '1'; then + if test "X$ax_cv_check_cl_libcl" != Xno; then : MAGICK_FEATURES="OpenCL $MAGICK_FEATURES" fi fi -- 2.40.0