aboutsummaryrefslogtreecommitdiffstats
path: root/common/rfb/tightEncode.h
diff options
context:
space:
mode:
authorAdam Tkac <atkac@redhat.com>2008-10-10 15:48:22 +0000
committerAdam Tkac <atkac@redhat.com>2008-10-10 15:48:22 +0000
commitfee32e33ab725f67d42f3d627ff1e26b4f5e40c9 (patch)
treed3a5cdd74330af15fb5602c952ebb2097d6e2e8a /common/rfb/tightEncode.h
parent3a54922143021a62bcd54af1f7270afbd86ade95 (diff)
downloadtigervnc-fee32e33ab725f67d42f3d627ff1e26b4f5e40c9.tar.gz
tigervnc-fee32e33ab725f67d42f3d627ff1e26b4f5e40c9.zip
[Cleanup] Fixed some compiler warnings
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2976 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'common/rfb/tightEncode.h')
-rw-r--r--common/rfb/tightEncode.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/rfb/tightEncode.h b/common/rfb/tightEncode.h
index 71f076e6..d8939642 100644
--- a/common/rfb/tightEncode.h
+++ b/common/rfb/tightEncode.h
@@ -325,7 +325,9 @@ void TIGHT_ENCODE (const Rect& r, rdr::OutStream *os,
#endif
)
{
+#if (BPP != 8) || (BPP == 32)
const PixelFormat& pf = cp->pf();
+#endif
GET_IMAGE_INTO_BUF(r, buf);
PIXEL_T* pixels = (PIXEL_T*)buf;