summarylogtreecommitdiffstats
path: root/imagemagick-7.0.2.8-opencl-compile-fix.patch
diff options
context:
space:
mode:
authorBermond2016-08-14 17:47:15 -0300
committerBermond2016-08-14 17:47:15 -0300
commit412d1a03cd4308edceb5f63b52908da2b1d0f560 (patch)
tree1ca0c55d34bb3615283bc5c4bf76c2391ea83a80 /imagemagick-7.0.2.8-opencl-compile-fix.patch
parent8779610a10c17519c5981b74899a9fed021d3e47 (diff)
downloadaur-412d1a03cd4308edceb5f63b52908da2b1d0f560.tar.gz
Updated to version 7.0.2.8
Diffstat (limited to 'imagemagick-7.0.2.8-opencl-compile-fix.patch')
-rw-r--r--imagemagick-7.0.2.8-opencl-compile-fix.patch30
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);