Fixed dead store warnings
authorArmin Novak <armin.novak@thincast.com>
Thu, 7 Feb 2019 14:35:50 +0000 (15:35 +0100)
committerArmin Novak <armin.novak@thincast.com>
Fri, 5 Apr 2019 07:14:35 +0000 (09:14 +0200)
client/Sample/tf_channels.c
client/Sample/tf_freerdp.c
client/X11/xf_floatbar.c

index 91e13bc..0f842b5 100644 (file)
@@ -69,8 +69,6 @@ void tf_OnChannelConnectedEventHandler(void* context,
                                        ChannelConnectedEventArgs* e)
 {
        tfContext* tf = (tfContext*) context;
-       rdpSettings* settings;
-       settings = tf->context.settings;
 
        if (strcmp(e->name, RDPEI_DVC_CHANNEL_NAME) == 0)
        {
@@ -99,8 +97,6 @@ void tf_OnChannelDisconnectedEventHandler(void* context,
         ChannelDisconnectedEventArgs* e)
 {
        tfContext* tf = (tfContext*) context;
-       rdpSettings* settings;
-       settings = tf->context.settings;
 
        if (strcmp(e->name, RDPEI_DVC_CHANNEL_NAME) == 0)
        {
index 5549cb0..0b81bf5 100644 (file)
@@ -168,6 +168,7 @@ static void tf_post_disconnect(freerdp* instance)
                                              tf_OnChannelDisconnectedEventHandler);
        gdi_free(instance);
        /* TODO : Clean up custom stuff */
+       WINPR_UNUSED(context);
 }
 
 /* RDP main loop.
@@ -245,6 +246,8 @@ static int tf_logon_error_info(freerdp* instance, UINT32 data, UINT32 type)
 
        tf = (tfContext*) instance->context;
        WLog_INFO(TAG, "Logon Error Info %s [%s]", str_data, str_type);
+       WINPR_UNUSED(tf);
+
        return 1;
 }
 
@@ -264,6 +267,7 @@ static BOOL tf_client_new(freerdp* instance, rdpContext* context)
        instance->VerifyChangedCertificateEx = client_cli_verify_changed_certificate_ex;
        instance->LogonErrorInfo = tf_logon_error_info;
        /* TODO: Client display set up */
+       WINPR_UNUSED(tf);
        return TRUE;
 }
 
@@ -276,6 +280,7 @@ static void tf_client_free(freerdp* instance, rdpContext* context)
                return;
 
        /* TODO: Client display tear down */
+       WINPR_UNUSED(tf);
 }
 
 static int tf_client_start(rdpContext* context)
index 51b2021..2854aa2 100644 (file)
@@ -672,7 +672,6 @@ BOOL xf_floatbar_check_event(xfFloatbar* floatbar, XEvent* event)
 {
        xfFloatbarButton* button;
        size_t i, size;
-       xfContext* xfc;
 
        if (!floatbar || !floatbar->xfc || !event)
                return FALSE;
@@ -680,8 +679,6 @@ BOOL xf_floatbar_check_event(xfFloatbar* floatbar, XEvent* event)
        if (!floatbar->created)
                return FALSE;
 
-       xfc = floatbar->xfc;
-
        if (event->xany.window == floatbar->handle)
                return TRUE;