Removed unused variable warnings
authorakallabeth <akallabeth@posteo.net>
Tue, 19 May 2020 06:04:02 +0000 (08:04 +0200)
committerakallabeth <akallabeth@posteo.net>
Wed, 20 May 2020 13:41:24 +0000 (15:41 +0200)
(cherry picked from commit 8052708f3354a686de98b62d641e9d0eb61a74db)

channels/cliprdr/cliprdr_common.c
libfreerdp/core/test/TestSettings.c
winpr/libwinpr/utils/collections/StreamPool.c

index a699852..c0fae6e 100644 (file)
@@ -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;
index d49df04..c9373bd 100644 (file)
@@ -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
index b8b3cb5..604f34f 100644 (file)
@@ -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);
 }