Skip to content

Commit 00c083a

Browse files
committed
Fixed compilation warnings.
1 parent ab90ddc commit 00c083a

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

channels/encomsp/client/encomsp_main.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
#endif
2525

2626
#include <winpr/crt.h>
27+
#include <winpr/assert.h>
2728
#include <winpr/print.h>
2829

2930
#include <freerdp/channels/log.h>
@@ -1140,7 +1141,7 @@ static DWORD WINAPI encomsp_virtual_channel_client_thread(LPVOID arg)
11401141
static UINT encomsp_virtual_channel_event_connected(encomspPlugin* encomsp, LPVOID pData,
11411142
UINT32 dataLength)
11421143
{
1143-
UINT32 status;
1144+
WINPR_ASSERT(encomsp);
11441145

11451146
encomsp->queue = MessageQueue_New(NULL);
11461147

libfreerdp/codec/include/bitmap.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ static INLINE BOOL RLEDECOMPRESS(const BYTE* pbSrcBuffer, UINT32 cbSrcBuffer, BY
100100
PIXEL pixelA, pixelB;
101101
UINT32 runLength;
102102
UINT32 code;
103-
UINT32 advance;
103+
UINT32 advance = 0;
104104
RLEEXTRA
105105

106106
if ((rowDelta == 0) || (rowDelta < width))

libfreerdp/codec/interleaved.c

+2-4
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,8 @@ static INLINE UINT32 ExtractCodeId(BYTE bOrderHdr)
130130
static INLINE UINT32 ExtractRunLength(UINT32 code, const BYTE* pbOrderHdr, const BYTE* pbEnd,
131131
UINT32* advance)
132132
{
133-
UINT32 runLength;
134-
UINT32 ladvance;
135-
ladvance = 1;
136-
runLength = 0;
133+
UINT32 runLength = 0;
134+
UINT32 ladvance = 1;
137135

138136
if (pbOrderHdr >= pbEnd)
139137
return 0;

0 commit comments

Comments
 (0)