From 0934d9f304715ee595244179e294ac45e2acd180 Mon Sep 17 00:00:00 2001 From: Cristy Date: Sat, 30 Jul 2016 08:15:02 -0400 Subject: [PATCH] Eliminate compiler warnings --- MagickCore/draw.c | 6 ------ MagickCore/effect.c | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) 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) -- 2.40.0