@@ -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)); |
@@ -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(); | |||
@@ -301,7 +301,6 @@ void SMsgWriter::writePseudoRects() | |||
{ | |||
if (needSetCursor) { | |||
rdr::U8* data; | |||
int stride; | |||
const Cursor& cursor = cp->cursor(); | |||
@@ -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(); | |||
@@ -760,7 +760,6 @@ void VNCSConnectionST::writeRTTPing() | |||
void VNCSConnectionST::handleRTTPong(const struct RTTInfo &rttInfo) | |||
{ | |||
unsigned rtt, delay; | |||
int bdp; | |||
pingCounter--; | |||
@@ -45,7 +45,5 @@ bool WinPasswdValidator::validateInternal(rfb::SConnection* sc, | |||
return true; | |||
} | |||
int err = GetLastError(); | |||
return false; | |||
} |
@@ -422,7 +422,7 @@ void OptionsDialog::createCompressionPage(int tx, int ty, int tw, int th) | |||
int orig_tx, orig_ty; | |||
int half_width, full_width; | |||
int width, height; | |||
int height; | |||
tx += OUTER_MARGIN; | |||
ty += OUTER_MARGIN; | |||
@@ -454,8 +454,6 @@ void OptionsDialog::createCompressionPage(int tx, int ty, int tw, int th) | |||
tx += GROUP_MARGIN; | |||
ty += GROUP_MARGIN; | |||
width = encodingGroup->w() - GROUP_MARGIN * 2; | |||
tightButton = new Fl_Round_Button(LBLRIGHT(tx, ty, | |||
RADIO_MIN_WIDTH, | |||
RADIO_HEIGHT, | |||
@@ -504,8 +502,6 @@ void OptionsDialog::createCompressionPage(int tx, int ty, int tw, int th) | |||
tx += GROUP_MARGIN; | |||
ty += GROUP_MARGIN; | |||
width = colorlevelGroup->w() - GROUP_MARGIN * 2; | |||
fullcolorCheckbox = new Fl_Round_Button(LBLRIGHT(tx, ty, | |||
RADIO_MIN_WIDTH, | |||
RADIO_HEIGHT, |
@@ -157,7 +157,6 @@ int X11PixelBuffer::setupShm() | |||
int major, minor; | |||
Bool pixmaps; | |||
XErrorHandler old_handler; | |||
Status status; | |||
const char *display_name = XDisplayName (NULL); | |||
/* Don't use MIT-SHM on remote displays */ |
@@ -899,7 +899,6 @@ unsigned ucs2keysym(unsigned ucs) | |||
{ | |||
int cur = 0; | |||
int max = sizeof(keysymtab) / sizeof(struct codepair) - 1; | |||
int mid; | |||
/* first check for Latin-1 characters (1:1 mapping) */ | |||
if ((ucs >= 0x0020 && ucs <= 0x007e) || |
@@ -551,7 +551,6 @@ char* loadViewerParameters(const char *filename) { | |||
char readError[buffersize*2]; | |||
char line[buffersize]; | |||
char decodingBuffer[buffersize]; | |||
char decodedValue[buffersize]; | |||
static char servername[sizeof(line)]; | |||
// Load from the registry or a predefined file if no filename was specified. |