mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[warnings] fix various compile warnings
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user