diff options
author | Marti Maria <info@littlecms.com> | 2010-07-09 18:20:59 +0200 |
---|---|---|
committer | Marti Maria <info@littlecms.com> | 2010-07-09 18:20:59 +0200 |
commit | 9670543888556ccfae1edade70bcc8756783332d (patch) | |
tree | ef1dfa2fa1b9e916aa0595b0e49a43ffbb2532d5 /utils | |
parent | 82d38fd5554605c6ac821801c90b598fa9bc14c3 (diff) | |
download | lcms2-9670543888556ccfae1edade70bcc8756783332d.tar.gz |
Adding cmsChangeBuffersFormat, fixing VC2010 project
Diffstat (limited to 'utils')
-rw-r--r-- | utils/common/utils.h | 4 | ||||
-rw-r--r-- | utils/common/vprf.c | 3 | ||||
-rw-r--r-- | utils/jpgicc/jpgicc.c | 2 | ||||
-rw-r--r-- | utils/tificc/tificc.c | 6 |
4 files changed, 15 insertions, 0 deletions
diff --git a/utils/common/utils.h b/utils/common/utils.h index 322d310..8f82ea4 100644 --- a/utils/common/utils.h +++ b/utils/common/utils.h @@ -49,6 +49,10 @@ #include <math.h> #include <wchar.h> +// Avoid warnings + +#define UTILS_UNUSED_PARAMETER(x) ((void)x) + // Init the utility functions void InitUtils(const char* PName); diff --git a/utils/common/vprf.c b/utils/common/vprf.c index deb494a..bf89230 100644 --- a/utils/common/vprf.c +++ b/utils/common/vprf.c @@ -50,6 +50,9 @@ void MyErrorLogHandler(cmsContext ContextID, cmsUInt32Number ErrorCode, const ch { if (Verbose >= 0) fprintf(stderr, "[%s]: %s\n", ProgramName, Text); + + UTILS_UNUSED_PARAMETER(ErrorCode); + UTILS_UNUSED_PARAMETER(ContextID); } diff --git a/utils/jpgicc/jpgicc.c b/utils/jpgicc/jpgicc.c index 1ab7c72..d212891 100644 --- a/utils/jpgicc/jpgicc.c +++ b/utils/jpgicc/jpgicc.c @@ -813,6 +813,8 @@ int TransformImage(char *cDefInpProf, char *cOutProf) hOut, wOutput, hProof, Intent, ProofingIntent, dwFlags); + if (xform == NULL) + FatalError("Cannot transform by using the profiles"); DoTransform(xform, OutputColorSpace); diff --git a/utils/tificc/tificc.c b/utils/tificc/tificc.c index b0363c2..4d972b1 100644 --- a/utils/tificc/tificc.c +++ b/utils/tificc/tificc.c @@ -143,6 +143,9 @@ unsigned char* UnrollTIFFLab8(struct _cmstransform_struct* CMMcargo, wIn[2] = (cmsUInt16Number) FromLabV2ToLabV4(((accum[2] > 127) ? (accum[2] - 128) : (accum[2] + 128)) << 8); return accum + 3; + + UTILS_UNUSED_PARAMETER(Stride); + UTILS_UNUSED_PARAMETER(CMMcargo); } static @@ -162,6 +165,9 @@ unsigned char* PackTIFFLab8(struct _cmstransform_struct* CMMcargo, *output++ = (cmsUInt8Number) ((b < 128) ? (b + 128) : (b - 128)); return output; + + UTILS_UNUSED_PARAMETER(Stride); + UTILS_UNUSED_PARAMETER(CMMcargo); } |