summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Tkac <atkac@redhat.com>2011-02-21 11:58:06 +0000
committerAdam Tkac <atkac@redhat.com>2011-02-21 11:58:06 +0000
commitbc9bb15feb9c96bc10ed8f4ac6ddf1fe24f72d24 (patch)
treed6d84954d97daf6f6741bb4b21759b7993042488
parent4510c402e5ab5c80cf96ea6ac2b53c7a86e4bd14 (diff)
downloadtigervnc-bc9bb15feb9c96bc10ed8f4ac6ddf1fe24f72d24.tar.gz
tigervnc-bc9bb15feb9c96bc10ed8f4ac6ddf1fe24f72d24.zip
[Bugfix] Remove "unused-but-set" variable from tightDecode.h.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4298 3789f03b-4d11-0410-bbf8-ca57d06f2519
-rw-r--r--common/rfb/tightDecode.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/common/rfb/tightDecode.h b/common/rfb/tightDecode.h
index d0f7b68a..29177266 100644
--- a/common/rfb/tightDecode.h
+++ b/common/rfb/tightDecode.h
@@ -184,12 +184,11 @@ void TIGHT_DECODE (const Rect& r, rdr::InStream* is,
}
}
} else {
- int x, y, b, w;
+ int x, y, b;
PIXEL_T *ptr = buf;
rdr::U8 bits;
if (palSize <= 2) {
// 2-color palette
- w = (r.width() + 7) / 8;
for (y = 0; y < r.height(); y++) {
for (x = 0; x < r.width() / 8; x++) {
bits = input->readU8();