From 9c93c6cbf316e8e4440c12b2090d86a69c9ee0ad Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Thu, 21 Dec 2017 11:04:50 +0100 Subject: [PATCH] Fixed unused variable warnings. --- client/X11/xf_event.c | 9 ++------- libfreerdp/gdi/test/TestGdiRop3.c | 4 ---- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/client/X11/xf_event.c b/client/X11/xf_event.c index 944f462..c6655d2 100644 --- a/client/X11/xf_event.c +++ b/client/X11/xf_event.c @@ -489,10 +489,8 @@ static BOOL xf_event_KeyPress(xfContext* xfc, XEvent* event, BOOL app) static BOOL xf_event_KeyRelease(xfContext* xfc, XEvent* event, BOOL app) { - XEvent nextEvent; KeySym keysym; char str[256]; - XLookupString((XKeyEvent*) event, str, sizeof(str), &keysym, NULL); xf_keyboard_key_release(xfc, event->xkey.keycode, keysym); return TRUE; @@ -668,10 +666,8 @@ static BOOL xf_event_ConfigureNotify(xfContext* xfc, XEvent* event, BOOL app) if (settings->DynamicResolutionUpdate) { int alignedWidth, alignedHeight; - alignedWidth = (xfc->window->width / 2) * 2; alignedHeight = (xfc->window->height / 2) * 2; - /* ask the server to resize using the display channel */ xf_disp_handle_configureNotify(xfc, alignedWidth, alignedHeight); } @@ -960,7 +956,7 @@ BOOL xf_event_process(freerdp* instance, XEvent* event) BOOL status = TRUE; xfAppWindow* appWindow; xfContext* xfc = (xfContext*) instance->context; - rdpSettings *settings = xfc->context.settings; + rdpSettings* settings = xfc->context.settings; if (xfc->remote_app) { @@ -1064,13 +1060,12 @@ BOOL xf_event_process(freerdp* instance, XEvent* event) default: if (settings->SupportDisplayControl && xfc->xfDisp) xf_disp_handle_xevent(xfc, event); + break; } xf_cliprdr_handle_xevent(xfc, event); - xf_input_handle_event(xfc, event); - XSync(xfc->display, FALSE); return status; } diff --git a/libfreerdp/gdi/test/TestGdiRop3.c b/libfreerdp/gdi/test/TestGdiRop3.c index d80fd5b..9e9c414 100644 --- a/libfreerdp/gdi/test/TestGdiRop3.c +++ b/libfreerdp/gdi/test/TestGdiRop3.c @@ -93,10 +93,6 @@ * */ -static const BYTE rop_P = 0xF0; /* 11110000 */ -static const BYTE rop_S = 0xCC; /* 11001100 */ -static const BYTE rop_D = 0xAA; /* 10101010 */ - static char* gdi_convert_postfix_to_infix(const char* postfix) { int i; -- 2.7.4