GraphicsMagick: XCF: Eliminate warnings about unused variable 'c...

GraphicsMagick Commits <[email protected]>
Newsgroups gmane.comp.video.graphicsmagick.cvs
Message-ID <mailman.247.1641743313.1336.graphicsmagick-commit@lists.sourceforge.net>
changeset 58b78e09b702 in /hg/GraphicsMagick
details: http://hg.GraphicsMagick.org/hg/GraphicsMagick?cmd=changeset;node=58b78e09b702
summary: XCF: Eliminate warnings about unused variable 'count'

diffstat:

 coders/xcf.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (39 lines):

diff -r ab97cafd3e68 -r 58b78e09b702 coders/xcf.c
--- a/coders/xcf.c	Sun Jan 09 09:35:00 2022 -0600
+++ b/coders/xcf.c	Sun Jan 09 09:48:15 2022 -0600
@@ -424,7 +424,7 @@
     nmemb_read_successfully;
 
   int
-    count,
+    /* count, */
     length,
     bpp,    /* BYTES per pixel! */
     i,
@@ -470,7 +470,7 @@
           goto bogus_rle;
         }
       size = MagickArraySize(tile_image->rows,tile_image->columns);
-      count = 0;
+      /* count = 0; */
 
       while (size > 0)
         {
@@ -498,7 +498,7 @@
                   xcfdata += 2;
                 }
 
-              count += length;
+              /* count += length; */
               size -= length;
 
               if (size < 0)
@@ -567,7 +567,7 @@
                   xcfdata += 2;
                 }
 
-              count += length;
+              /* count += length; */
               size -= length;
 
               if (size < 0)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.