From c78e466be1049a0bf8460252452a873fa11ebde5 Mon Sep 17 00:00:00 2001 From: akallabeth Date: Fri, 24 Nov 2023 09:47:32 +0100 Subject: [PATCH] [warnings] fixes Wunused-variable --- libfreerdp/core/gateway/rpc.c | 1 - libfreerdp/core/gateway/tsg.c | 1 - libfreerdp/core/nla.c | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/libfreerdp/core/gateway/rpc.c b/libfreerdp/core/gateway/rpc.c index b9583d161..15896a055 100644 --- a/libfreerdp/core/gateway/rpc.c +++ b/libfreerdp/core/gateway/rpc.c @@ -524,7 +524,6 @@ static int rpc_channel_rpch_init(RpcClient* client, RpcChannel* channel, const c if (guid) { - char bracedguid[64] = { 0 }; char* strguid = NULL; RPC_STATUS rpcStatus = UuidToStringA(guid, &strguid); diff --git a/libfreerdp/core/gateway/tsg.c b/libfreerdp/core/gateway/tsg.c index c130b0f81..636f9c37b 100644 --- a/libfreerdp/core/gateway/tsg.c +++ b/libfreerdp/core/gateway/tsg.c @@ -1526,7 +1526,6 @@ static BOOL tsg_ndr_read_caps_response(wLog* log, rdpContext* context, wStream* { UINT32 PacketQuarResponsePtr = 0; UINT32 MessageSwitchValue = 0; - UINT32 SwitchValue = 0; UINT32 MsgId = 0; UINT32 MsgType = 0; UINT32 IsMessagePresent = 0; diff --git a/libfreerdp/core/nla.c b/libfreerdp/core/nla.c index da2a50a9b..8be58a42f 100644 --- a/libfreerdp/core/nla.c +++ b/libfreerdp/core/nla.c @@ -1345,7 +1345,7 @@ static BOOL nla_read_ts_credentials(rdpNla* nla, SecBuffer* data) } /* supplementalCreds [1] SEQUENCE OF TSRemoteGuardPackageCred OPTIONAL, */ - MSV1_0_SUPPLEMENTAL_CREDENTIAL ntlmCreds; + MSV1_0_SUPPLEMENTAL_CREDENTIAL ntlmCreds = { 0 }; MSV1_0_SUPPLEMENTAL_CREDENTIAL* suppCreds = NULL; WinPrAsn1Decoder suppCredsSeq = { 0 };