More compiler warnings
floppym opened this issue · comments
Mike Gilbert commented
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
akallabeth commented
@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
Mike Gilbert commented
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.