[warnings] fixed unused-variable warnings

This commit is contained in:
Armin Novak 2023-03-06 09:00:22 +01:00 committed by Martin Fleisz
parent f5462bdf92
commit e496771034
5 changed files with 3 additions and 5 deletions

View File

@ -94,7 +94,9 @@ static INLINE BYTE* WRITEFIRSTLINEFGBGIMAGE(BYTE* pbDest, const BYTE* pbDestEnd,
static INLINE BOOL RLEDECOMPRESS(const BYTE* pbSrcBuffer, UINT32 cbSrcBuffer, BYTE* pbDestBuffer,
UINT32 rowDelta, UINT32 width, UINT32 height)
{
#if defined(WITH_DEBUG_CODECS)
char sbuffer[128] = { 0 };
#endif
const BYTE* pbSrc = pbSrcBuffer;
const BYTE* pbEnd;
const BYTE* pbDestEnd;

View File

@ -2630,7 +2630,6 @@ fail:
static BOOL progressive_rfx_write_message_progressive_simple(PROGRESSIVE_CONTEXT* progressive,
wStream* s, const RFX_MESSAGE* msg)
{
UINT32 i;
RFX_CONTEXT* context;
WINPR_ASSERT(progressive);

View File

@ -225,8 +225,6 @@ static BOOL rdp_redirection_write_base64_wchar(UINT32 flag, wStream* s, size_t l
const void* data)
{
BOOL rc = FALSE;
char buffer[64] = { 0 };
const BYTE* ptr = NULL;
char* base64 = crypto_base64_encode(data, length);
if (!base64)

View File

@ -1306,6 +1306,7 @@ fail:
char* freerdp_certificate_get_pem(const rdpCertificate* cert, size_t* pLength)
{
BOOL rc = FALSE;
char* pem = NULL;
WINPR_ASSERT(cert);

View File

@ -80,8 +80,6 @@ static void unlock(void)
static void term_handler(int signum)
{
struct sigaction default_sigaction;
sigset_t this_mask;
static BOOL recursive = FALSE;
if (!recursive)