Commit 90bf73ede for imagemagick.org

commit 90bf73ede2b0c3120965155d8f852adb711b1e58
Author: Cristy <urban-warrior@imagemagick.org>
Date:   Wed Sep 30 21:36:51 2026 -0400

    eliminate compiler warning

diff --git a/coders/svg.c b/coders/svg.c
index c01f05925..38e71ea84 100644
--- a/coders/svg.c
+++ b/coders/svg.c
@@ -708,72 +708,6 @@ static SVGInfo *DestroySVGInfo(SVGInfo *svg_info)
   return((SVGInfo *) RelinquishMagickMemory(svg_info));
 }

-static char *EscapeSVGAttributeValue(const char *string)
-{
-  char
-    *destination;
-
-  const unsigned char
-    *p;
-
-  size_t
-    length;
-
-  /*
-    XML encode text written into SVG attribute/style value contexts.
-  */
-  if (string == (const char *) NULL)
-    return(AcquireString(""));
-  length=strlen(string);
-  destination=(char *) AcquireQuantumMemory(6UL*length+1UL,
-    sizeof(*destination));
-  if (destination == (char *) NULL)
-    return(AcquireString(""));
-  *destination='\0';
-  for (p=(const unsigned char *) string; *p != '\0'; p++)
-  {
-    switch (*p)
-    {
-      case '&':
-      {
-        (void) ConcatenateMagickString(destination,"&amp;",6UL*length+1UL);
-        break;
-      }
-      case '<':
-      {
-        (void) ConcatenateMagickString(destination,"&lt;",6UL*length+1UL);
-        break;
-      }
-      case '>':
-      {
-        (void) ConcatenateMagickString(destination,"&gt;",6UL*length+1UL);
-        break;
-      }
-      case '"':
-      {
-        (void) ConcatenateMagickString(destination,"&quot;",6UL*length+1UL);
-        break;
-      }
-      case '\'':
-      {
-        (void) ConcatenateMagickString(destination,"&apos;",6UL*length+1UL);
-        break;
-      }
-      default:
-      {
-        char
-          c[2];
-
-        c[0]=(char) *p;
-        c[1]='\0';
-        (void) ConcatenateMagickString(destination,c,6UL*length+1UL);
-        break;
-      }
-    }
-  }
-  return(destination);
-}
-
 static double GetUserSpaceCoordinateValue(const SVGInfo *svg_info,int type,
   const char *string)
 {
@@ -3655,6 +3589,72 @@ static void AffineToTransform(Image *image,AffineMatrix *affine)
   (void) WriteBlobString(image,transform);
 }

+static char *EscapeSVGAttributeValue(const char *string)
+{
+  char
+    *destination;
+
+  const unsigned char
+    *p;
+
+  size_t
+    length;
+
+  /*
+    XML encode text written into SVG attribute/style value contexts.
+  */
+  if (string == (const char *) NULL)
+    return(AcquireString(""));
+  length=strlen(string);
+  destination=(char *) AcquireQuantumMemory(6UL*length+1UL,
+    sizeof(*destination));
+  if (destination == (char *) NULL)
+    return(AcquireString(""));
+  *destination='\0';
+  for (p=(const unsigned char *) string; *p != '\0'; p++)
+  {
+    switch (*p)
+    {
+      case '&':
+      {
+        (void) ConcatenateMagickString(destination,"&amp;",6UL*length+1UL);
+        break;
+      }
+      case '<':
+      {
+        (void) ConcatenateMagickString(destination,"&lt;",6UL*length+1UL);
+        break;
+      }
+      case '>':
+      {
+        (void) ConcatenateMagickString(destination,"&gt;",6UL*length+1UL);
+        break;
+      }
+      case '"':
+      {
+        (void) ConcatenateMagickString(destination,"&quot;",6UL*length+1UL);
+        break;
+      }
+      case '\'':
+      {
+        (void) ConcatenateMagickString(destination,"&apos;",6UL*length+1UL);
+        break;
+      }
+      default:
+      {
+        char
+          c[2];
+
+        c[0]=(char) *p;
+        c[1]='\0';
+        (void) ConcatenateMagickString(destination,c,6UL*length+1UL);
+        break;
+      }
+    }
+  }
+  return(destination);
+}
+
 static MagickBooleanType IsPoint(const char *point)
 {
   char