From 55df275dc58fc817a59bf52c1b2bb564433c3999 Mon Sep 17 00:00:00 2001 From: Marti Maria Date: Wed, 2 Aug 2017 10:55:41 +0200 Subject: Get rid of warnings when compiling as C++ with -Wall Thanks to Noel Carboni for suggesting & providing a proof that it could be done --- src/cmscnvrt.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/cmscnvrt.c') diff --git a/src/cmscnvrt.c b/src/cmscnvrt.c index 07bd6cb..082f1f8 100644 --- a/src/cmscnvrt.c +++ b/src/cmscnvrt.c @@ -363,11 +363,12 @@ cmsBool IsEmptyLayer(cmsMAT3* m, cmsVEC3* off) // Compute the conversion layer static -cmsBool ComputeConversion(int i, cmsHPROFILE hProfiles[], - cmsUInt32Number Intent, - cmsBool BPC, - cmsFloat64Number AdaptationState, - cmsMAT3* m, cmsVEC3* off) +cmsBool ComputeConversion(cmsUInt32Number i, + cmsHPROFILE hProfiles[], + cmsUInt32Number Intent, + cmsBool BPC, + cmsFloat64Number AdaptationState, + cmsMAT3* m, cmsVEC3* off) { int k; @@ -679,7 +680,7 @@ cmsPipeline* CMSEXPORT _cmsDefaultICCintents(cmsContext ContextID, // Translate black-preserving intents to ICC ones static -int TranslateNonICCIntents(int Intent) +cmsUInt32Number TranslateNonICCIntents(cmsUInt32Number Intent) { switch (Intent) { case INTENT_PRESERVE_K_ONLY_PERCEPTUAL: -- cgit v1.2.1