...
diff --git a/MagickCore/opencl.c b/MagickCore/opencl.c
index 173786a..f44e074 100644
--- a/MagickCore/opencl.c
+++ b/MagickCore/opencl.c
@@ -2645,7 +2645,7 @@
   assert(device != (MagickCLDevice) NULL);
   assert(exception != (ExceptionInfo *) NULL);
   assert(exception->signature == MagickCoreSignature);
-
+  (void) exception;
   status=MagickTrue;
   if (severity != 0)
   {