From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=39113 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OpRyE-0008UM-Q7 for qemu-devel@nongnu.org; Sat, 28 Aug 2010 16:25:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OpRyD-0005IM-Fi for qemu-devel@nongnu.org; Sat, 28 Aug 2010 16:25:46 -0400 Received: from mail-ey0-f173.google.com ([209.85.215.173]:33964) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OpRyD-0005IF-Ay for qemu-devel@nongnu.org; Sat, 28 Aug 2010 16:25:45 -0400 Received: by eyf18 with SMTP id 18so2903697eyf.4 for ; Sat, 28 Aug 2010 13:25:43 -0700 (PDT) From: Serge Ziryukin Date: Sat, 28 Aug 2010 23:24:33 +0300 Message-Id: <1283027073-8804-1-git-send-email-ftrvxmtrx@gmail.com> Subject: [Qemu-devel] [PATCH] vnc: tight: remove unused variable List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Serge Ziryukin Signed-off-by: Serge Ziryukin --- ui/vnc-enc-tight.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/ui/vnc-enc-tight.c b/ui/vnc-enc-tight.c index c4c9c3b..6ee10f9 100644 --- a/ui/vnc-enc-tight.c +++ b/ui/vnc-enc-tight.c @@ -1351,7 +1351,6 @@ static int send_png_rect(VncState *vs, int x, int y, int w, int h, png_structp png_ptr; png_infop info_ptr; png_colorp png_palette = NULL; - size_t offset; int level = tight_png_conf[vs->tight.compression].png_zlib_level; int filters = tight_png_conf[vs->tight.compression].png_filters; uint8_t *buf; @@ -1396,7 +1395,6 @@ static int send_png_rect(VncState *vs, int x, int y, int w, int h, png_set_PLTE(png_ptr, info_ptr, png_palette, palette_size(palette)); - offset = vs->tight.tight.offset; if (vs->clientds.pf.bytes_per_pixel == 4) { tight_encode_indexed_rect32(vs->tight.tight.buffer, w * h, palette); } else { -- 1.7.2.2