Commit 414297f01 for imagemagick.org
commit 414297f01da23ce5db7ced6da7f05d973910afc7
Author: Cristy <urban-warrior@imagemagick.org>
Date: Mon Jul 6 10:56:00 2026 -0400
eliminate compiler warning
diff --git a/MagickCore/widget.c b/MagickCore/widget.c
index 870ca7ab5..df711e149 100644
--- a/MagickCore/widget.c
+++ b/MagickCore/widget.c
@@ -2993,7 +2993,7 @@ MagickPrivate int XCommandWidget(Display *display,XWindows *windows,
"MemoryAllocationFailed","...");
return(id);
}
- state|=UpdateConfigurationState | RedrawWidgetState;
+ state|=(int) UpdateConfigurationState | (int) RedrawWidgetState;
}
/*
Wait for next event.
diff --git a/coders/png.c b/coders/png.c
index 8a7a9c7fc..264a66a61 100644
--- a/coders/png.c
+++ b/coders/png.c
@@ -5856,11 +5856,12 @@ static Image *ReadOneMNGImage(MngReadInfo* mng_info,
if (memcmp(type,mng_LOOP,4) == 0)
{
ssize_t loop_iters=1;
- if (number_loop_ops++ > MNG_MAX_LOOP_OPS)
+ if (number_loop_ops > MNG_MAX_LOOP_OPS)
{
chunk=(unsigned char *) RelinquishMagickMemory(chunk);
ThrowReaderException(ResourceLimitError,"too many LOOP/ENDL ops");
}
+ number_loop_ops+=1;
if (length > 4)
{
loop_level=chunk[0];
@@ -5896,11 +5897,12 @@ static Image *ReadOneMNGImage(MngReadInfo* mng_info,
if (memcmp(type,mng_ENDL,4) == 0)
{
- if (number_loop_ops++ > MNG_MAX_LOOP_OPS)
+ if (number_loop_ops > MNG_MAX_LOOP_OPS)
{
chunk=(unsigned char *) RelinquishMagickMemory(chunk);
ThrowReaderException(ResourceLimitError,"too many LOOP/ENDL ops");
}
+ number_loop_ops+=1;
if (length > 0)
{
loop_level=chunk[0];
@@ -7142,7 +7144,7 @@ static Image *ReadOneMNGImage(MngReadInfo* mng_info,
while (GetPreviousImageInList(image) != (Image *) NULL)
{
- image_count++;
+ image_count+=1;
if (image_count > 10*mng_info->image_found)
{
if (logging != MagickFalse)
@@ -13003,7 +13005,8 @@ static MagickBooleanType WriteMNGImage(const ImageInfo *image_info,Image *image,
(void) LogMagickEvent(CoderEvent,GetMagickModule(),
" Scene: %.20g\n, Image depth: %.20g",
- (double) scene++, (double) p->depth);
+ (double) scene, (double) p->depth);
+ scene+=1;
if (p->alpha_trait != UndefinedPixelTrait)
(void) LogMagickEvent(CoderEvent,GetMagickModule(),
@@ -13717,8 +13720,9 @@ static MagickBooleanType WriteMNGImage(const ImageInfo *image_info,Image *image,
if (GetNextImageInList(image) == (Image *) NULL)
break;
image=SyncNextImageInList(image);
- status=SetImageProgress(image,SaveImagesTag,(MagickOffsetType) scene++,
+ status=SetImageProgress(image,SaveImagesTag,(MagickOffsetType) scene,
number_scenes);
+ scene+=1;
if (status == MagickFalse)
break;