From: akallabeth Date: Tue, 19 May 2020 06:04:02 +0000 (+0200) Subject: Removed unused variable warnings X-Git-Tag: 2.1.1^2~16 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9d5bb41445d9f229f8633555fccf983e068de627;p=platform%2Fupstream%2Ffreerdp.git Removed unused variable warnings (cherry picked from commit 8052708f3354a686de98b62d641e9d0eb61a74db) --- diff --git a/channels/cliprdr/cliprdr_common.c b/channels/cliprdr/cliprdr_common.c index a699852..c0fae6e 100644 --- a/channels/cliprdr/cliprdr_common.c +++ b/channels/cliprdr/cliprdr_common.c @@ -395,7 +395,6 @@ UINT cliprdr_read_file_contents_response(wStream* s, CLIPRDR_FILE_CONTENTS_RESPO UINT cliprdr_read_format_list(wStream* s, CLIPRDR_FORMAT_LIST* formatList, BOOL useLongFormatNames) { UINT32 index; - size_t position; BOOL asciiNames; int formatNameLength; char* szFormatName; diff --git a/libfreerdp/core/test/TestSettings.c b/libfreerdp/core/test/TestSettings.c index d49df04..c9373bd 100644 --- a/libfreerdp/core/test/TestSettings.c +++ b/libfreerdp/core/test/TestSettings.c @@ -185,6 +185,7 @@ int TestSettings(int argc, char* argv[]) { const size_t key = pointer_list_indices[x]; const void* val = freerdp_settings_get_pointer(settings, key); + WINPR_UNUSED(val); } #endif diff --git a/winpr/libwinpr/utils/collections/StreamPool.c b/winpr/libwinpr/utils/collections/StreamPool.c index b8b3cb5..604f34f 100644 --- a/winpr/libwinpr/utils/collections/StreamPool.c +++ b/winpr/libwinpr/utils/collections/StreamPool.c @@ -232,7 +232,6 @@ void StreamPool_Return(wStreamPool* pool, wStream* s) pool->aArray[(pool->aSize)++] = s; StreamPool_RemoveUsed(pool, s); -out_fail: if (pool->synchronized) LeaveCriticalSection(&pool->lock); }