diff --git a/wand/mogrify.c b/wand/mogrify.c
index f6cae63..80bf1bf 100644
--- a/wand/mogrify.c
+++ b/wand/mogrify.c
@@ -405,15 +405,6 @@
double
*sparse_arguments;
- register size_t
- x;
-
- size_t
- number_arguments;
-
- size_t
- number_colors;
-
Image
*sparse_image;
@@ -423,6 +414,13 @@
MagickBooleanType
error;
+ register size_t
+ x;
+
+ size_t
+ number_arguments,
+ number_colors;
+
assert(image != (Image *) NULL);
assert(image->signature == MagickSignature);
if (image->debug != MagickFalse)
@@ -3196,7 +3194,8 @@
quantize_info=DestroyQuantizeInfo(quantize_info);
draw_info=DestroyDrawInfo(draw_info);
mogrify_info=DestroyImageInfo(mogrify_info);
- status=(*image)->exception.severity == UndefinedException ? 1 : 0;
+ status=(MagickStatusType) ((*image)->exception.severity ==
+ UndefinedException ? 1 : 0);
return(status == 0 ? MagickFalse : MagickTrue);
}