aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2015-03-03 16:10:53 +0100
committerPierre Ossman <ossman@cendio.se>2015-03-03 16:10:53 +0100
commiteb95532f5c0e9e6891233ab7ca4d2a10e1fe1d32 (patch)
treeb4d5c282152aae6973693047318e8e1e55f955bd /common
parentda9a38d4e9ded0901db1bd4b6144f0213ebecea7 (diff)
downloadtigervnc-eb95532f5c0e9e6891233ab7ca4d2a10e1fe1d32.tar.gz
tigervnc-eb95532f5c0e9e6891233ab7ca4d2a10e1fe1d32.zip
Remove unused variables
Diffstat (limited to 'common')
-rw-r--r--common/network/TcpSocket.cxx1
-rw-r--r--common/rfb/EncodeManagerBPP.cxx3
-rw-r--r--common/rfb/SMsgWriter.cxx1
-rw-r--r--common/rfb/TightEncoder.cxx2
-rw-r--r--common/rfb/VNCSConnectionST.cxx1
-rw-r--r--common/rfb/WinPasswdValidator.cxx2
6 files changed, 1 insertions, 9 deletions
diff --git a/common/network/TcpSocket.cxx b/common/network/TcpSocket.cxx
index ef7f55db..e19f52b1 100644
--- a/common/network/TcpSocket.cxx
+++ b/common/network/TcpSocket.cxx
@@ -598,7 +598,6 @@ TcpListener::accept() {
void TcpListener::getMyAddresses(std::list<char*>* result) {
#if defined(HAVE_GETADDRINFO) && defined(HAVE_INET_PTON)
- vnc_sockaddr_t sa;
struct addrinfo *ai, *current, hints;
memset(&hints, 0, sizeof(struct addrinfo));
diff --git a/common/rfb/EncodeManagerBPP.cxx b/common/rfb/EncodeManagerBPP.cxx
index f58466cb..03612914 100644
--- a/common/rfb/EncodeManagerBPP.cxx
+++ b/common/rfb/EncodeManagerBPP.cxx
@@ -59,9 +59,6 @@ inline bool EncodeManager::analyseRect(int width, int height,
rdr::UBPP colour;
int count;
- rdr::UBPP c0, c1, ci = 0;
- int i, n0, n1, ni;
-
info->rleRuns = 0;
info->palette.clear();
diff --git a/common/rfb/SMsgWriter.cxx b/common/rfb/SMsgWriter.cxx
index 9aee96d2..e4215086 100644
--- a/common/rfb/SMsgWriter.cxx
+++ b/common/rfb/SMsgWriter.cxx
@@ -301,7 +301,6 @@ void SMsgWriter::writePseudoRects()
{
if (needSetCursor) {
rdr::U8* data;
- int stride;
const Cursor& cursor = cp->cursor();
diff --git a/common/rfb/TightEncoder.cxx b/common/rfb/TightEncoder.cxx
index 3846ae08..ec19c2e0 100644
--- a/common/rfb/TightEncoder.cxx
+++ b/common/rfb/TightEncoder.cxx
@@ -163,7 +163,7 @@ void TightEncoder::writeFullColourRect(const PixelBuffer* pb, const Palette& pal
int length;
const rdr::U8* buffer;
- int stride, w, h;
+ int stride, h;
os = conn->getOutStream();
diff --git a/common/rfb/VNCSConnectionST.cxx b/common/rfb/VNCSConnectionST.cxx
index e261cfba..b4613e16 100644
--- a/common/rfb/VNCSConnectionST.cxx
+++ b/common/rfb/VNCSConnectionST.cxx
@@ -760,7 +760,6 @@ void VNCSConnectionST::writeRTTPing()
void VNCSConnectionST::handleRTTPong(const struct RTTInfo &rttInfo)
{
unsigned rtt, delay;
- int bdp;
pingCounter--;
diff --git a/common/rfb/WinPasswdValidator.cxx b/common/rfb/WinPasswdValidator.cxx
index 7f8fbf28..22efcc0c 100644
--- a/common/rfb/WinPasswdValidator.cxx
+++ b/common/rfb/WinPasswdValidator.cxx
@@ -45,7 +45,5 @@ bool WinPasswdValidator::validateInternal(rfb::SConnection* sc,
return true;
}
- int err = GetLastError();
-
return false;
}