[byzanz/0.2: 9/14] Fix compiler warning



commit a4ed3c6dbddf3385952b9cd8dc00b07ae65f28ef
Author: Christopher Aillon <caillon redhat com>
Date:   Wed Feb 16 19:08:22 2011 -0800

    Fix compiler warning
    
    quantize.c: In function 'gifenc_quantize_image':
    quantize.c:364:20: error: variable 'count' set but not used [-Werror=unused-but-set-variable]

 gifenc/quantize.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gifenc/quantize.c b/gifenc/quantize.c
index 3415dda..7eca4f9 100644
--- a/gifenc/quantize.c
+++ b/gifenc/quantize.c
@@ -361,9 +361,8 @@ gifenc_quantize_image (const guint8 *data, guint width, guint height,
   info.tree->color = (guint) -2; /* special node */
 
   if (TRUE) {
-    guint r, g, b, count;
+    guint r, g, b;
     static const guint8 colors[] = { 0, 85, 170, 255 };
-    count = (width * height) / (4 * 4 * 4);
     for (r = 0; r < 4; r++) {
       for (g = 0; g < 4; g++) {
 	for (b = 0; b < 4; b++) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]