Fixed compilation warnings.

This commit is contained in:
akallabeth 2021-09-14 07:38:25 +02:00 committed by akallabeth
parent ab90ddc781
commit 00c083a854
3 changed files with 5 additions and 6 deletions

View File

@ -24,6 +24,7 @@
#endif
#include <winpr/crt.h>
#include <winpr/assert.h>
#include <winpr/print.h>
#include <freerdp/channels/log.h>
@ -1140,7 +1141,7 @@ static DWORD WINAPI encomsp_virtual_channel_client_thread(LPVOID arg)
static UINT encomsp_virtual_channel_event_connected(encomspPlugin* encomsp, LPVOID pData,
UINT32 dataLength)
{
UINT32 status;
WINPR_ASSERT(encomsp);
encomsp->queue = MessageQueue_New(NULL);

View File

@ -100,7 +100,7 @@ static INLINE BOOL RLEDECOMPRESS(const BYTE* pbSrcBuffer, UINT32 cbSrcBuffer, BY
PIXEL pixelA, pixelB;
UINT32 runLength;
UINT32 code;
UINT32 advance;
UINT32 advance = 0;
RLEEXTRA
if ((rowDelta == 0) || (rowDelta < width))

View File

@ -130,10 +130,8 @@ static INLINE UINT32 ExtractCodeId(BYTE bOrderHdr)
static INLINE UINT32 ExtractRunLength(UINT32 code, const BYTE* pbOrderHdr, const BYTE* pbEnd,
UINT32* advance)
{
UINT32 runLength;
UINT32 ladvance;
ladvance = 1;
runLength = 0;
UINT32 runLength = 0;
UINT32 ladvance = 1;
if (pbOrderHdr >= pbEnd)
return 0;