mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-14 16:34:18 +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:
@@ -456,9 +456,9 @@ static void check_open_close_receive(DVCMAN_CHANNEL* channel)
|
||||
WINPR_ASSERT(cb);
|
||||
if (!cb->OnOpen || !cb->OnClose || !cb->OnDataReceived)
|
||||
WLog_VRB(TAG, "{%s:%" PRIu32 "} OnOpen=%p, OnClose=%p, OnDataReceived=%p", name, id,
|
||||
WINPR_CXX_COMPAT_CAST(const void*, cb->OnOpen),
|
||||
WINPR_CXX_COMPAT_CAST(const void*, cb->OnClose),
|
||||
WINPR_CXX_COMPAT_CAST(const void*, cb->OnDataReceived));
|
||||
WINPR_FUNC_PTR_CAST(cb->OnOpen, const void*),
|
||||
WINPR_FUNC_PTR_CAST(cb->OnClose, const void*),
|
||||
WINPR_FUNC_PTR_CAST(cb->OnDataReceived, const void*));
|
||||
}
|
||||
|
||||
static UINT dvcman_call_on_receive(DVCMAN_CHANNEL* channel, wStream* data)
|
||||
|
||||
Reference in New Issue
Block a user