diff --git a/MagickCore/attribute.c b/MagickCore/attribute.c
index dc65d79..b00697e 100644
--- a/MagickCore/attribute.c
+++ b/MagickCore/attribute.c
@@ -979,6 +979,9 @@
           }
         for (x=0; x < (ssize_t) image->columns; x++)
         {
+          register ssize_t
+            i;
+
           for (i=0; i < (ssize_t) GetPixelChannels(image); i++)
           {
             PixelChannel