From 688dc7a5195b56893f18b598bbb723e9a436fccd Mon Sep 17 00:00:00 2001 From: cristy Date: Sun, 7 Apr 2013 00:02:55 +0000 Subject: [PATCH] --- coders/mpc.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/coders/mpc.c b/coders/mpc.c index c3ce3bb0c..9ef3c42a4 100644 --- a/coders/mpc.c +++ b/coders/mpc.c @@ -1074,8 +1074,7 @@ static MagickBooleanType WriteMPCImage(const ImageInfo *image_info,Image *image, i; size_t - depth, - one; + depth; /* Open persistent cache. @@ -1095,7 +1094,6 @@ static MagickBooleanType WriteMPCImage(const ImageInfo *image_info,Image *image, AppendImageFormat("cache",cache_filename); scene=0; offset=0; - one=1; do { /* @@ -1104,7 +1102,7 @@ static MagickBooleanType WriteMPCImage(const ImageInfo *image_info,Image *image, depth=GetImageQuantumDepth(image,MagickTrue); if ((image->storage_class == PseudoClass) && (image->colors > (size_t) (GetQuantumRange(image->depth)+1))) - (void) SetImageStorageClass(image,DirectClass); + (void) SetImageStorageClass(image,DirectClass,exception); (void) WriteBlobString(image,"id=MagickCache\n"); (void) FormatLocaleString(buffer,MaxTextExtent,"magick-signature=%u\n", GetMagickSignature((const StringInfo *) NULL)); -- 2.40.0