mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[build] fix Wmismatched-deallocator warnings
With custom malloc function attributes the fail path in the _New functions produces warnings due to allocator mismatches. Silence them.
This commit is contained in:
@@ -959,7 +959,10 @@ proxyServer* pf_server_new(const proxyConfig* config)
|
||||
return server;
|
||||
|
||||
out:
|
||||
WINPR_PRAGMA_DIAG_PUSH
|
||||
WINPR_PRAGMA_DIAG_IGNORED_MISMATCHED_DEALLOC
|
||||
pf_server_free(server);
|
||||
WINPR_PRAGMA_DIAG_POP
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user