From bc8bdc3e54e665d9a72117c5deea54e0d89b0e1c Mon Sep 17 00:00:00 2001 From: Bernhard Miklautz Date: Mon, 11 Dec 2017 16:25:46 +0100 Subject: [PATCH] fix channel/smartcard: compiler warnings * remove unused variables * remove unused jump label --- channels/smartcard/client/smartcard_main.c | 1 - channels/smartcard/client/smartcard_operations.c | 1 - libfreerdp/common/settings.c | 2 -- 3 files changed, 4 deletions(-) diff --git a/channels/smartcard/client/smartcard_main.c b/channels/smartcard/client/smartcard_main.c index d3555f9..6fb6b5a 100644 --- a/channels/smartcard/client/smartcard_main.c +++ b/channels/smartcard/client/smartcard_main.c @@ -680,7 +680,6 @@ UINT DeviceServiceEntry(PDEVICE_SERVICE_ENTRY_POINTS pEntryPoints) size_t length; RDPDR_SMARTCARD* device; SMARTCARD_DEVICE* smartcard; - LONG status; UINT error = CHANNEL_RC_NO_MEMORY; device = (RDPDR_SMARTCARD*) pEntryPoints->device; smartcard = (SMARTCARD_DEVICE*) calloc(1, sizeof(SMARTCARD_DEVICE)); diff --git a/channels/smartcard/client/smartcard_operations.c b/channels/smartcard/client/smartcard_operations.c index 3070ab3..ccb8d7f 100644 --- a/channels/smartcard/client/smartcard_operations.c +++ b/channels/smartcard/client/smartcard_operations.c @@ -581,7 +581,6 @@ static LONG smartcard_GetStatusChangeA_Decode(SMARTCARD_DEVICE* smartcard, static LONG smartcard_GetStatusChangeA_Call(SMARTCARD_DEVICE* smartcard, SMARTCARD_OPERATION* operation) { - LONG status; UINT32 index; GetStatusChange_Return ret; LPSCARD_READERSTATEA rgReaderState = NULL; diff --git a/libfreerdp/common/settings.c b/libfreerdp/common/settings.c index fd4b008..9bf72a4 100644 --- a/libfreerdp/common/settings.c +++ b/libfreerdp/common/settings.c @@ -309,8 +309,6 @@ out_print_name_error: return (RDPDR_DEVICE*) _smartcard; -out_smartc_path_error: - free(_smartcard->Name); out_smartc_name_error: free(_smartcard); return NULL; -- 2.7.4