From aa70a9549e45f326cefebb789031a417c978671e Mon Sep 17 00:00:00 2001 From: Marti Maria Date: Wed, 31 Jul 2024 15:09:21 +0200 Subject: [PATCH] Missing cast can result in an error on certain compilers Fixes #456 --- testbed/testplugin.c | 2 +- testbed/zoo_icc.c | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/testbed/testplugin.c b/testbed/testplugin.c index db8991e4..9a7c8329 100755 --- a/testbed/testplugin.c +++ b/testbed/testplugin.c @@ -807,7 +807,7 @@ static cmsPluginTag HiddenTagPluginSample = { static cmsPluginTag HiddenTagPluginSample2 = { - { cmsPluginMagicNumber, 2060, cmsPluginTagSig, &HiddenTagPluginSample}, + { cmsPluginMagicNumber, 2060, cmsPluginTagSig, (cmsPluginBase*) &HiddenTagPluginSample}, SigInt32, { 1, 1, { cmsSigUInt32ArrayType }, NULL } }; diff --git a/testbed/zoo_icc.c b/testbed/zoo_icc.c index 36c50031..80acd7b8 100755 --- a/testbed/zoo_icc.c +++ b/testbed/zoo_icc.c @@ -60,13 +60,12 @@ void ReadAllRAWTags(cmsHPROFILE h) { cmsInt32Number i, n; cmsTagSignature sig; - cmsInt32Number len; - + n = cmsGetTagCount(h); for (i=0; i < n; i++) { sig = cmsGetTagSignature(h, i); - len = cmsReadRawTag(h, sig, NULL, 0); + cmsReadRawTag(h, sig, NULL, 0); } }