From 597cba042a1fefb3908635a94fef4f928c39c7af Mon Sep 17 00:00:00 2001 From: Hardening Date: Tue, 29 Apr 2014 16:02:31 +0200 Subject: [PATCH] Fix some compilation warnings --- libfreerdp/core/gateway/rts.c | 2 +- libfreerdp/core/orders.c | 4 ++++ winpr/include/winpr/synch.h | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/libfreerdp/core/gateway/rts.c b/libfreerdp/core/gateway/rts.c index 9c4b2ec3c..42ce2ad4e 100644 --- a/libfreerdp/core/gateway/rts.c +++ b/libfreerdp/core/gateway/rts.c @@ -261,7 +261,7 @@ BOOL rts_connect(rdpRpc* rpc) return TRUE; } -#ifdef WITH_DEBUG_RTS +#if defined WITH_DEBUG_RTS && 0 static const char* const RTS_CMD_STRINGS[] = { diff --git a/libfreerdp/core/orders.c b/libfreerdp/core/orders.c index 6cf12f2b8..6a3e67690 100644 --- a/libfreerdp/core/orders.c +++ b/libfreerdp/core/orders.c @@ -203,6 +203,7 @@ static INLINE BOOL update_write_coord(wStream* s, INT32 coord) return TRUE; } +#if 0 static INLINE BOOL update_write_coord_delta(wStream* s, INT32 prevCoord, INT32 nextCoord) { INT8 lsi8; @@ -212,6 +213,7 @@ static INLINE BOOL update_write_coord_delta(wStream* s, INT32 prevCoord, INT32 n return TRUE; } +#endif static INLINE BOOL update_read_color(wStream* s, UINT32* color) { @@ -513,6 +515,7 @@ static INLINE BOOL update_read_delta(wStream* s, INT32* value) return TRUE; } +#if 0 static INLINE void update_read_glyph_delta(wStream* s, UINT16* value) { BYTE byte; @@ -534,6 +537,7 @@ static INLINE void update_seek_glyph_delta(wStream* s) if (byte & 0x80) Stream_Seek_UINT8(s); } +#endif static INLINE BOOL update_read_brush(wStream* s, rdpBrush* brush, BYTE fieldFlags) { diff --git a/winpr/include/winpr/synch.h b/winpr/include/winpr/synch.h index 181b6f490..00b979a69 100644 --- a/winpr/include/winpr/synch.h +++ b/winpr/include/winpr/synch.h @@ -297,7 +297,7 @@ WINPR_API BOOL DeleteTimerQueueTimer(HANDLE TimerQueue, HANDLE Timer, HANDLE Com #endif -#if ((_WIN32) && (_WIN32_WINNT < 0x0403)) +#if ((defined _WIN32) && (_WIN32_WINNT < 0x0403)) WINPR_API BOOL InitializeCriticalSectionEx(LPCRITICAL_SECTION lpCriticalSection, DWORD dwSpinCount, DWORD Flags);