From: Cristy Date: Sat, 30 Jul 2016 12:15:02 +0000 (-0400) Subject: Eliminate compiler warnings X-Git-Tag: 7.0.2-7~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0934d9f304715ee595244179e294ac45e2acd180;p=imagemagick Eliminate compiler warnings --- diff --git a/MagickCore/draw.c b/MagickCore/draw.c index c3466c58f..7ac3d5415 100644 --- a/MagickCore/draw.c +++ b/MagickCore/draw.c @@ -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) { diff --git a/MagickCore/effect.c b/MagickCore/effect.c index 48a2adf49..5a33212fb 100644 --- a/MagickCore/effect.c +++ b/MagickCore/effect.c @@ -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)