]> granicus.if.org Git - imagemagick/commitdiff
Fixed warnings.
authorDirk Lemstra <dirk@lemstra.org>
Thu, 20 Sep 2018 20:30:58 +0000 (22:30 +0200)
committerDirk Lemstra <dirk@lemstra.org>
Thu, 20 Sep 2018 20:30:58 +0000 (22:30 +0200)
MagickCore/threshold.c
coders/pdb.c

index 5c79ec8b0755c9a1c8752eade3ace1b26db1ff5c..e2dd37b1166ce2f7f83458ba289cdf578dbe3085 100644 (file)
@@ -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;
     }
   }
index c299d4403a075ba910140ec8a2906d2e0e6e5b5d..710711104b7a7fd44fbe68a4a08846642ff975d4 100644 (file)
@@ -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");