From: Dirk Lemstra Date: Thu, 20 Sep 2018 20:30:58 +0000 (+0200) Subject: Fixed warnings. X-Git-Tag: 7.0.8-12~14 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8135ab8c609bce7986ba3e228fa8f6f6d6f11178;p=imagemagick Fixed warnings. --- diff --git a/MagickCore/threshold.c b/MagickCore/threshold.c index 5c79ec8b0..e2dd37b11 100644 --- a/MagickCore/threshold.c +++ b/MagickCore/threshold.c @@ -563,7 +563,7 @@ static double OTSUThreshold(const Image *image,const double *histogram, return(100.0*threshold/MaxIntensity); } -static double TriangleThreshold(const Image *image,const double *histogram, +static double TriangleThreshold(const double *histogram, ExceptionInfo *exception) { double @@ -740,7 +740,7 @@ MagickExport MagickBooleanType AutoThresholdImage(Image *image, } case TriangleThresholdMethod: { - threshold=TriangleThreshold(image,histogram,exception); + threshold=TriangleThreshold(histogram,exception); break; } } diff --git a/coders/pdb.c b/coders/pdb.c index c299d4403..710711104 100644 --- a/coders/pdb.c +++ b/coders/pdb.c @@ -429,7 +429,7 @@ static Image *ReadPDBImage(const ImageInfo *image_info,ExceptionInfo *exception) { image->compression=NoCompression; count=(ssize_t) ReadBlob(image,packets*image->rows,pixels); - if (count != (packets*image->rows)) + if (count != (ssize_t) (packets*image->rows)) { pixels=(unsigned char *) RelinquishMagickMemory(pixels); ThrowReaderException(CorruptImageError,"RLEDecoderError");