From 6f9a9160c4006aecfc8ca5248e7e4bf8154aff62 Mon Sep 17 00:00:00 2001 From: Christian Beier Date: Wed, 25 Apr 2012 13:36:25 +0200 Subject: Fix some compiler warnings thrown with newer gcc. --- libvncserver/websockets.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libvncserver/websockets.c') diff --git a/libvncserver/websockets.c b/libvncserver/websockets.c index 425bc15..8cd96d3 100644 --- a/libvncserver/websockets.c +++ b/libvncserver/websockets.c @@ -622,7 +622,8 @@ webSocketsDecodeHybi(rfbClientPtr cl, char *dst, int len) int i; unsigned char opcode; ws_ctx_t *wsctx = (ws_ctx_t *)cl->wsctx; - int flength, fin, fhlen; + int flength, fhlen; + /* int fin; */ /* not used atm */ // rfbLog(" <== %s[%d]: %d cl: %p, wsctx: %p-%p (%d)\n", __func__, gettid(), len, cl, wsctx, (char *)wsctx + sizeof(ws_ctx_t), sizeof(ws_ctx_t)); @@ -662,7 +663,7 @@ webSocketsDecodeHybi(rfbClientPtr cl, char *dst, int len) } opcode = header->b0 & 0x0f; - fin = (header->b0 & 0x80) >> 7; + /* fin = (header->b0 & 0x80) >> 7; */ /* not used atm */ flength = header->b1 & 0x7f; /* -- cgit v1.2.1