Commit e3145ec30 for imagemagick.org
commit e3145ec30a50f9f4c8e7bb783358d6af3f85aaf8
Author: Cristy <urban-warrior@imagemagick.org>
Date: Wed Nov 25 14:17:51 2026 -0500
eliminate compiler warning
diff --git a/coders/yaml.c b/coders/yaml.c
index 016167116..57b407035 100644
--- a/coders/yaml.c
+++ b/coders/yaml.c
@@ -552,6 +552,9 @@ static ssize_t PrintChannelLocations(FILE *file,const Image *image,
ExceptionInfo
*exception;
+ PixelTrait
+ traits;
+
ssize_t
n,
y;
@@ -574,7 +577,7 @@ static ssize_t PrintChannelLocations(FILE *file,const Image *image,
"%.*g\n",name,GetMagickPrecision(),QuantumScale*target);
exception=AcquireExceptionInfo();
n=0;
- PixelTrait traits = GetPixelChannelTraits(image,channel);
+ traits=GetPixelChannelTraits(image,channel);
for (y=0; (traits != UndefinedPixelTrait) && (y < (ssize_t) image->rows); y++)
{
const Quantum