From a4cc897222b8cbfb621d27c7c9f070dbbb05def9 Mon Sep 17 00:00:00 2001 From: Vic Lee Date: Wed, 4 Nov 2009 23:18:36 +0800 Subject: Fix various compilation warnings Signed-off-by: Vic Lee Signed-off-by: Johannes Schindelin --- libvncclient/zrle.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libvncclient/zrle.c') diff --git a/libvncclient/zrle.c b/libvncclient/zrle.c index 6ff3008..da2db4b 100644 --- a/libvncclient/zrle.c +++ b/libvncclient/zrle.c @@ -239,8 +239,10 @@ static int HandleZRLETile(rfbClient* client, uint8_t* buffer_copy = buffer; uint8_t* buffer_end = buffer+buffer_length; uint8_t type; +#if BPP!=8 uint8_t zywrle_level = (client->appData.qualityLevel & 0x80) ? 0 : (3 - client->appData.qualityLevel / 3); +#endif if(buffer_length<1) return -2; -- cgit v1.1