mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[compiler,gcc] fix function pointer casts
use dedicated macro WINPR_FUNC_PTR_CAST to cast function pointers without warnings.
This commit is contained in:
@@ -851,8 +851,8 @@ BOOL freerdp_client_channel_register(rdpChannels* channels, HANDLE handle,
|
||||
if (!channels || (handle == INVALID_HANDLE_VALUE) || !fkt)
|
||||
{
|
||||
WLog_ERR(TAG, "Invalid function arguments (channels=%p, handle=%p, fkt=%p, userdata=%p",
|
||||
WINPR_CXX_COMPAT_CAST(const void*, channels), handle,
|
||||
WINPR_CXX_COMPAT_CAST(const void*, fkt), userdata);
|
||||
WINPR_FUNC_PTR_CAST(channels, const void*), handle,
|
||||
WINPR_FUNC_PTR_CAST(fkt, const void*), userdata);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user