[warnings] fix various compile warnings

This commit is contained in:
Armin Novak
2025-05-21 11:04:57 +02:00
parent 1882cebbce
commit 24ea6414bc
3 changed files with 4 additions and 8 deletions

View File

@@ -1014,7 +1014,8 @@ static BOOL hotplug_delete_foreach(ULONG_PTR key, void* element, void* data)
return TRUE;
}
static UINT handle_hotplug(RdpdrClientContext* context, RdpdrHotplugEventType type)
static UINT handle_hotplug(RdpdrClientContext* context,
WINPR_ATTR_UNUSED RdpdrHotplugEventType type)
{
WINPR_ASSERT(context);
rdpdrPlugin* rdpdr = context->handle;
@@ -2341,7 +2342,8 @@ static UINT rdpdr_unregister_device(RdpdrClientContext* context, size_t count, c
const uintptr_t id = ids[x];
devman_unregister_device(rdpdr->devman, (void*)id);
}
return rdpdr_send_device_list_remove_request(rdpdr, count, ids);
return rdpdr_send_device_list_remove_request(rdpdr, WINPR_ASSERTING_INT_CAST(uint32_t, count),
ids);
}
static UINT rdpdr_virtual_channel_event_initialized(rdpdrPlugin* rdpdr,