From 27d34e784d912b876753e79d02e1d94cf8bcbb5d Mon Sep 17 00:00:00 2001 From: firewave Date: Mon, 4 Sep 2023 23:47:56 +0200 Subject: [PATCH] fixed Cppcheck `unusedVariable` warnings --- fontutils/windows/fontdump.c | 2 -- libxrdp/xrdp_surface.c | 3 --- sesman/chansrv/pcsc/wrapper/winscard.c | 1 - tools/devel/gtcp_proxy/gtcp.c | 2 -- xrdpapi/vrplayer.c | 5 ----- 5 files changed, 13 deletions(-) diff --git a/fontutils/windows/fontdump.c b/fontutils/windows/fontdump.c index 286bcb85..79214ec6 100644 --- a/fontutils/windows/fontdump.c +++ b/fontutils/windows/fontdump.c @@ -466,8 +466,6 @@ create_window(void) { WNDCLASS wc; DWORD style; - HDC dc; - int height; int left; int top; diff --git a/libxrdp/xrdp_surface.c b/libxrdp/xrdp_surface.c index 7b49c9e2..b41379e6 100644 --- a/libxrdp/xrdp_surface.c +++ b/libxrdp/xrdp_surface.c @@ -94,10 +94,7 @@ xrdp_surface_send_surface_bits(struct xrdp_surface *self, int bpp, char *data, int x, int y, int cx, int cy) { RFX_RECT rect; - char *buf; int Bpp; - int i; - int j; int codecId; uint32 bitmapDataLength; STREAM *s; diff --git a/sesman/chansrv/pcsc/wrapper/winscard.c b/sesman/chansrv/pcsc/wrapper/winscard.c index a8287010..62556d5f 100644 --- a/sesman/chansrv/pcsc/wrapper/winscard.c +++ b/sesman/chansrv/pcsc/wrapper/winscard.c @@ -723,7 +723,6 @@ SCardControl(SCARDHANDLE hCard, DWORD dwControlCode, LPCVOID lpInBuffer, DWORD nOutBufferSize, LPDWORD lpBytesReturned) { LONG rv; - char text[8148]; LLOGLN(10, ("SCardControl:")); LLOGLN(10, (" hCard %p", hCard)); diff --git a/tools/devel/gtcp_proxy/gtcp.c b/tools/devel/gtcp_proxy/gtcp.c index 6e52babc..0ea8e2c8 100644 --- a/tools/devel/gtcp_proxy/gtcp.c +++ b/tools/devel/gtcp_proxy/gtcp.c @@ -131,8 +131,6 @@ int tcp_listen(int skt) int tcp_accept(int skt) { - int ret ; - char ipAddr[256] ; struct sockaddr_in s; socklen_t i; diff --git a/xrdpapi/vrplayer.c b/xrdpapi/vrplayer.c index 5e4fbde7..de20c303 100644 --- a/xrdpapi/vrplayer.c +++ b/xrdpapi/vrplayer.c @@ -56,14 +56,9 @@ extract_32(uint32_t *value, char *buf) int main(int argc, char **argv) { - char *data; - char *data1; void *channel; int written = 0; - int rv; int first_time = 1; - int length; - int bytes_read; if (argc < 2) {