summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Åstrand <astrand@cendio.se>2010-02-10 07:26:56 +0000
committerPeter Åstrand <astrand@cendio.se>2010-02-10 07:26:56 +0000
commit145d1f8cf34479c9822c6db2c790a9400db7065c (patch)
tree963c1b7002fde4b4b6ee8b5eee4cffa7240b39ff
parent6ac5b73a90827d85f415070d7c1fed44c338c44a (diff)
downloadtigervnc-145d1f8cf34479c9822c6db2c790a9400db7065c.tar.gz
tigervnc-145d1f8cf34479c9822c6db2c790a9400db7065c.zip
Eliminate three more GCC warnings:
* wParam is unsigned. * newThread variable was unused * setExtendedDesktopSize reason is signed, but result codes are not. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3966 3789f03b-4d11-0410-bbf8-ca57d06f2519
-rw-r--r--win/vncviewer/CConn.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/win/vncviewer/CConn.cxx b/win/vncviewer/CConn.cxx
index 5be15e86..af38e0fd 100644
--- a/win/vncviewer/CConn.cxx
+++ b/win/vncviewer/CConn.cxx
@@ -198,7 +198,7 @@ CConn::sysCommand(WPARAM wParam, LPARAM lParam) {
options.autoScaling = false;
window->setAutoScaling(false);
}
- if (wParam == IDM_ZOOM_IN) {
+ if (wParam == (unsigned)IDM_ZOOM_IN) {
for (int i = 0; i < scaleCount; i++)
if (options.scale < scaleValues[i]) {
options.scale = scaleValues[i];
@@ -266,7 +266,7 @@ CConn::sysCommand(WPARAM wParam, LPARAM lParam) {
return true;
case IDM_NEWCONN:
{
- Thread* newThread = new CConnThread;
+ new CConnThread;
}
return true;
case IDM_OPTIONS:
@@ -453,7 +453,7 @@ CConn::setDesktopSize(int w, int h) {
void
CConn::setExtendedDesktopSize(int reason, int result, int w, int h,
const rfb::ScreenSet& layout) {
- if ((reason == reasonClient) && (result != resultSuccess)) {
+ if ((reason == (signed)reasonClient) && (result != (signed)resultSuccess)) {
vlog.error("SetDesktopSize failed: %d", result);
return;
}