From 31c1700c0cbab634f9ddccbc0ebc8b3556e3f112 Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Mon, 21 Nov 2022 08:34:23 +0100 Subject: [PATCH] Fixed -Wunused-variable --- libfreerdp/core/capabilities.c | 2 -- libfreerdp/core/gcc.c | 1 - libfreerdp/core/nla.c | 1 - libfreerdp/core/smartcardlogon.c | 1 - libfreerdp/primitives/test/TestPrimitivesAdd.c | 1 - winpr/libwinpr/sspi/test/TestNTLM.c | 1 - 6 files changed, 7 deletions(-) diff --git a/libfreerdp/core/capabilities.c b/libfreerdp/core/capabilities.c index d5a95163c..57fe3336b 100644 --- a/libfreerdp/core/capabilities.c +++ b/libfreerdp/core/capabilities.c @@ -152,8 +152,6 @@ static BOOL rdp_capability_set_finish(wStream* s, UINT16 header, UINT16 type) static BOOL rdp_apply_general_capability_set(rdpSettings* settings, const rdpSettings* src) { UINT16 extraFlags; - BYTE refreshRectSupport; - BYTE suppressOutputSupport; WINPR_ASSERT(settings); WINPR_ASSERT(src); diff --git a/libfreerdp/core/gcc.c b/libfreerdp/core/gcc.c index 49098a615..941e489c6 100644 --- a/libfreerdp/core/gcc.c +++ b/libfreerdp/core/gcc.c @@ -2157,7 +2157,6 @@ BOOL gcc_write_client_monitor_data(wStream* s, const rdpMcs* mcs) BOOL gcc_read_client_monitor_extended_data(wStream* s, rdpMcs* mcs, UINT16 blockLength) { UINT32 index; - UINT32 flags; UINT32 monitorCount; UINT32 monitorAttributeSize; rdpContext* context; diff --git a/libfreerdp/core/nla.c b/libfreerdp/core/nla.c index 3cdcc53b8..bda539d43 100644 --- a/libfreerdp/core/nla.c +++ b/libfreerdp/core/nla.c @@ -1422,7 +1422,6 @@ static int nla_decode_ts_request(rdpNla* nla, wStream* s) WinPrAsn1_OctetString octet_string; WinPrAsn1_INTEGER val; UINT32 version = 0; - char buffer[1024]; WINPR_ASSERT(nla); WINPR_ASSERT(s); diff --git a/libfreerdp/core/smartcardlogon.c b/libfreerdp/core/smartcardlogon.c index f5c63d378..beb8f5895 100644 --- a/libfreerdp/core/smartcardlogon.c +++ b/libfreerdp/core/smartcardlogon.c @@ -611,7 +611,6 @@ static BOOL smartcard_sw_enumerateCerts(const rdpSettings* settings, SmartcardCe DWORD* retCount) { BOOL rc = FALSE; - int res; SmartcardCertInfo** cert_list = NULL; WINPR_ASSERT(settings); diff --git a/libfreerdp/primitives/test/TestPrimitivesAdd.c b/libfreerdp/primitives/test/TestPrimitivesAdd.c index 091527661..9cb4cf836 100644 --- a/libfreerdp/primitives/test/TestPrimitivesAdd.c +++ b/libfreerdp/primitives/test/TestPrimitivesAdd.c @@ -27,7 +27,6 @@ static BOOL test_add16s_func(void) ALIGN(d1[FUNC_TEST_SIZE + 3]) = { 0 }, ALIGN(d2[FUNC_TEST_SIZE + 3]) = { 0 }; - char testStr[256] = { 0 }; winpr_RAND((BYTE*)src1, sizeof(src1)); winpr_RAND((BYTE*)src2, sizeof(src2)); status = generic->add_16s(src1 + 1, src2 + 1, d1 + 1, FUNC_TEST_SIZE); diff --git a/winpr/libwinpr/sspi/test/TestNTLM.c b/winpr/libwinpr/sspi/test/TestNTLM.c index 19b736e3c..b0b5c54a2 100644 --- a/winpr/libwinpr/sspi/test/TestNTLM.c +++ b/winpr/libwinpr/sspi/test/TestNTLM.c @@ -398,7 +398,6 @@ static int test_ntlm_server_authenticate(TEST_NTLM_SERVER* ntlm) if (!hash_set && status == SEC_I_CONTINUE_NEEDED) { - SecPkgContext_AuthIdentity AuthIdentity = { 0 }; SecPkgContext_AuthNtlmHash AuthNtlmHash = { 0 }; if (ntlm->UseNtlmV2Hash)