Fixed unused variable warnings.
authorArmin Novak <armin.novak@thincast.com>
Thu, 21 Dec 2017 10:04:50 +0000 (11:04 +0100)
committerArmin Novak <armin.novak@thincast.com>
Thu, 21 Dec 2017 10:04:50 +0000 (11:04 +0100)
client/X11/xf_event.c
libfreerdp/gdi/test/TestGdiRop3.c

index 944f462..c6655d2 100644 (file)
@@ -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;
+       rdpSettingssettings = 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;
 }
index d80fd5b..9e9c414 100644 (file)
  *
  */
 
-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;