FreeRDP / FreeRDP

FreeRDP is a free remote desktop protocol library and clients

Home Page:http://www.freerdp.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

More compiler warnings

floppym opened this issue · comments

Following on from #10085, I now get 2 warnings when building from master.

libfreerdp/core/orders.c:4018:33: warning: ‘free_cache_color_table_order’ called on pointer returned from a mismatched allocation function [-Wmismatched-dealloc]
winpr/libwinpr/utils/test/TestStream.c:132:9: warning: ‘Stream_Free’ called on unallocated object ‘staticStream’ [-Wfree-nonheap-object]

Full build log:
build-log.txt

@floppym the winpr/libwinpr/utils/test/TestStream.c:132:9: warning: ‘Stream_Free’ called on unallocated object ‘staticStream’ [-Wfree-nonheap-object] is on purpose (just like written in the comment above the code)

I can´t get the free_cache_color_table_order warning though, neighter with clang not with gcc

I haven't looked at the code, so I was unaware of any comments. 🙂

I'll see if I can figure out what is triggering the other warning on my system.