diff options
Diffstat (limited to 'imagemagick-7.0.2.8-opencl-compile-fix.patch')
-rw-r--r-- | imagemagick-7.0.2.8-opencl-compile-fix.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/imagemagick-7.0.2.8-opencl-compile-fix.patch b/imagemagick-7.0.2.8-opencl-compile-fix.patch new file mode 100644 index 000000000000..5ccc52de780e --- /dev/null +++ b/imagemagick-7.0.2.8-opencl-compile-fix.patch @@ -0,0 +1,30 @@ +diff --git a/MagickCore/opencl.c b/MagickCore/opencl.c +index 6f16996..b8656a2 100644 +--- a/MagickCore/opencl.c ++++ b/MagickCore/opencl.c +@@ -725,16 +725,12 @@ static void LoadOpenCLDeviceBenchmark(MagickCLEnv clEnv,const char *xml) + MagickCLDeviceBenchmark + *device_benchmark; + +- MagickStatusType +- status; +- + size_t + i, + extent; + + if (xml == (char *) NULL) + return; +- status=MagickTrue; + device_benchmark=(MagickCLDeviceBenchmark *) NULL; + token=AcquireString(xml); + extent=strlen(token)+MagickPathExtent; +@@ -919,7 +915,7 @@ static MagickBooleanType LoadOpenCLBenchmarks(MagickCLEnv clEnv, + return(MagickFalse); + } + +- option=ConfigureFileToStringInfo(filename,exception); ++ option=ConfigureFileToStringInfo(filename); + LoadOpenCLDeviceBenchmark(clEnv,(const char *) GetStringInfoDatum(option)); + option=DestroyStringInfo(option); + return(MagickTrue); |