diff options
author | Adam Tkac <atkac@redhat.com> | 2008-10-10 15:48:22 +0000 |
---|---|---|
committer | Adam Tkac <atkac@redhat.com> | 2008-10-10 15:48:22 +0000 |
commit | fee32e33ab725f67d42f3d627ff1e26b4f5e40c9 (patch) | |
tree | d3a5cdd74330af15fb5602c952ebb2097d6e2e8a /common/rfb/tightEncode.h | |
parent | 3a54922143021a62bcd54af1f7270afbd86ade95 (diff) | |
download | tigervnc-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.h | 2 |
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; |