[byzanz] Fix compiler warning
- From: Christopher Aillon <caillon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [byzanz] Fix compiler warning
- Date: Thu, 17 Feb 2011 23:05:29 +0000 (UTC)
commit 4ba4909f20622f30ede5347caf68e3144f4a2059
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]