aboutsummaryrefslogtreecommitdiffstats
path: root/common/rfb
diff options
context:
space:
mode:
authorDRC <dcommander@users.sourceforge.net>2011-11-03 17:51:01 +0000
committerDRC <dcommander@users.sourceforge.net>2011-11-03 17:51:01 +0000
commitbf380e7eb90600fbce2279e4ac2efd3f3c8a7345 (patch)
treebb37126a528617b265d52256950ab7805e6318af /common/rfb
parent4eb7420e410592d6753ee4dcdcb3834baad61f09 (diff)
downloadtigervnc-bf380e7eb90600fbce2279e4ac2efd3f3c8a7345.tar.gz
tigervnc-bf380e7eb90600fbce2279e4ac2efd3f3c8a7345.zip
Fix compiler warnings uncovered with -Wall
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4755 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'common/rfb')
-rw-r--r--common/rfb/PixelTransformer.cxx2
-rw-r--r--common/rfb/VNCSConnectionST.cxx2
-rw-r--r--common/rfb/hextileEncode.h2
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) {