]> granicus.if.org Git - imagemagick/commitdiff
Eliminate compiler warnings
authorCristy <urban-warrior@imagemagick.org>
Sat, 30 Jul 2016 12:15:02 +0000 (08:15 -0400)
committerCristy <urban-warrior@imagemagick.org>
Sat, 30 Jul 2016 12:15:02 +0000 (08:15 -0400)
MagickCore/draw.c
MagickCore/effect.c

index c3466c58f8d7190a6f017dabdc3a84d1e7690802..7ac3d5415cc4a1714fb0a4ccabd37fb324196962 100644 (file)
@@ -5937,12 +5937,6 @@ static void TraceSquareLinecap(PrimitiveInfo *primitive_info,
     dy*(distance+offset)/distance);
 }
 
-static inline double DrawEpsilonReciprocal(const double x)
-{
-  double sign = x < 0.0 ? -1.0 : 1.0;
-  return((sign*x) >= DrawEpsilon ? 1.0/x : sign*(1.0/DrawEpsilon));
-}
-
 static PrimitiveInfo *TraceStrokePolygon(const DrawInfo *draw_info,
   const PrimitiveInfo *primitive_info)
 {
index 48a2adf49793effd38bd0a3fbdd8f395f433a6be..5a33212fb776b6cc8162c49f47d9bab53067667d 100644 (file)
@@ -2942,7 +2942,7 @@ MagickExport Image *RotationalBlurImage(const Image *image,const double angle,
           }
         gamma=0.0;
         pixel=0.0;
-        if ((GetPixelChannelTraits(image,AlphaChannel) == UndefinedPixelTrait) ||
+        if ((GetPixelChannelTraits(image,AlphaPixelChannel) == UndefinedPixelTrait) ||
             (channel == AlphaPixelChannel))
           {
             for (j=0; j < (ssize_t) n; j+=(ssize_t) step)