diff options
author | Tormod Volden <debian.tormod@gmail.com> | 2023-01-20 18:38:31 +0100 |
---|---|---|
committer | Tormod Volden <debian.tormod@gmail.com> | 2023-01-21 11:30:06 +0100 |
commit | 5b7d57e61a76c9f2c3018a807016ddd311fbf28a (patch) | |
tree | 2123ac2a2acd558c5291574d73ae0e007d77e496 /libusb/hotplug.c | |
parent | a92e21baa75bf553a54f5d5c6595872eece8f97b (diff) | |
download | libusb-5b7d57e61a76c9f2c3018a807016ddd311fbf28a.tar.gz |
Fix most -Wpedantic warnings
On Linux and gcc 12.2 at least.
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Diffstat (limited to 'libusb/hotplug.c')
-rw-r--r-- | libusb/hotplug.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libusb/hotplug.c b/libusb/hotplug.c index 6b743c7..0b34e9f 100644 --- a/libusb/hotplug.c +++ b/libusb/hotplug.c @@ -311,7 +311,7 @@ void usbi_hotplug_process(struct libusb_context *ctx, struct list_head *hotplug_ for_each_hotplug_cb_safe(ctx, hotplug_cb, next_cb) { if (hotplug_cb->flags & USBI_HOTPLUG_NEEDS_FREE) { usbi_dbg(ctx, "freeing hotplug cb %p with handle %d", - hotplug_cb, hotplug_cb->handle); + (void *) hotplug_cb, hotplug_cb->handle); list_del(&hotplug_cb->list); free(hotplug_cb); } @@ -377,7 +377,8 @@ int API_EXPORTED libusb_hotplug_register_callback(libusb_context *ctx, usbi_mutex_unlock(&ctx->hotplug_cbs_lock); - usbi_dbg(ctx, "new hotplug cb %p with handle %d", hotplug_cb, hotplug_cb->handle); + usbi_dbg(ctx, "new hotplug cb %p with handle %d", + (void *) hotplug_cb, hotplug_cb->handle); if ((flags & LIBUSB_HOTPLUG_ENUMERATE) && (events & LIBUSB_HOTPLUG_EVENT_DEVICE_ARRIVED)) { ssize_t i, len; |