From bf380e7eb90600fbce2279e4ac2efd3f3c8a7345 Mon Sep 17 00:00:00 2001 From: DRC Date: Thu, 3 Nov 2011 17:51:01 +0000 Subject: [PATCH] Fix compiler warnings uncovered with -Wall git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4755 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- common/rfb/PixelTransformer.cxx | 2 +- common/rfb/VNCSConnectionST.cxx | 2 -- common/rfb/hextileEncode.h | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/common/rfb/PixelTransformer.cxx b/common/rfb/PixelTransformer.cxx index c737f4d9..ce799ac7 100644 --- a/common/rfb/PixelTransformer.cxx +++ b/common/rfb/PixelTransformer.cxx @@ -143,7 +143,7 @@ static initTCtoCubeFnType initRGBTCtoCubeFns[] = { PixelTransformer::PixelTransformer(bool econ) - : economic(econ), cmCallback(0), table(0), transFn(0), cube(0) + : economic(econ), cmCallback(0), cube(0), table(0), transFn(0) { } diff --git a/common/rfb/VNCSConnectionST.cxx b/common/rfb/VNCSConnectionST.cxx index 34be0ef7..1478ba5d 100644 --- a/common/rfb/VNCSConnectionST.cxx +++ b/common/rfb/VNCSConnectionST.cxx @@ -636,8 +636,6 @@ bool VNCSConnectionST::handleTimeout(Timer* t) bool VNCSConnectionST::isCongested() { - int offset, space; - if (sock->outStream().bufferUsage() > 0) return true; diff --git a/common/rfb/hextileEncode.h b/common/rfb/hextileEncode.h index 9f8bd558..0d2e8aba 100644 --- a/common/rfb/hextileEncode.h +++ b/common/rfb/hextileEncode.h @@ -69,7 +69,7 @@ void HEXTILE_ENCODE(const Rect& r, rdr::OutStream* os GET_IMAGE_INTO_BUF(t,buf); - PIXEL_T bg, fg; + PIXEL_T bg = 0, fg = 0; int tileType = TEST_TILE_TYPE(buf, t.width(), t.height(), &bg, &fg); if (!oldBgValid || oldBg != bg) { -- 2.39.5