Added missing checks for MAGICKCORE_ZERO_CONFIGURATION_SUPPORT.
diff --git a/MagickCore/opencl.c b/MagickCore/opencl.c index a68e767..790ad7c 100644 --- a/MagickCore/opencl.c +++ b/MagickCore/opencl.c
@@ -908,7 +908,9 @@ We don't run the benchmark when we can not write out a device profile. The first GPU device will be used. */ +#if !defined(MAGICKCORE_ZERO_CONFIGURATION_SUPPORT) if (CanWriteProfileToFile(filename) == MagickFalse) +#endif { for (i = 0; i < clEnv->number_devices; i++) clEnv->devices[i]->score=1.0;