diff --git a/channels/rdpdr/client/rdpdr_main.c b/channels/rdpdr/client/rdpdr_main.c index 98778aeab..f1d200d3c 100644 --- a/channels/rdpdr/client/rdpdr_main.c +++ b/channels/rdpdr/client/rdpdr_main.c @@ -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, diff --git a/libfreerdp/core/aad.c b/libfreerdp/core/aad.c index 92c0d0943..3ecab348a 100644 --- a/libfreerdp/core/aad.c +++ b/libfreerdp/core/aad.c @@ -270,9 +270,6 @@ int aad_client_begin(rdpAad* aad) rdpSettings* settings = aad->rdpcontext->settings; WINPR_ASSERT(settings); - freerdp* instance = aad->rdpcontext->instance; - WINPR_ASSERT(instance); - /* Get the host part of the hostname */ const char* hostname = freerdp_settings_get_string(settings, FreeRDP_AadServerHostname); if (!hostname) diff --git a/libfreerdp/core/gateway/arm.c b/libfreerdp/core/gateway/arm.c index aceca53f8..5f420547c 100644 --- a/libfreerdp/core/gateway/arm.c +++ b/libfreerdp/core/gateway/arm.c @@ -196,9 +196,6 @@ static wStream* arm_build_http_request(rdpArm* arm, const char* method, WINPR_ASSERT(arm->context); WINPR_ASSERT(arm->context->rdp); - freerdp* instance = arm->context->instance; - WINPR_ASSERT(instance); - uri = http_context_get_uri(arm->http); request = http_request_new();