From c0e7b289fdb35687b90263b14426319d2b96b132 Mon Sep 17 00:00:00 2001 From: Pete Batard Date: Wed, 28 Mar 2012 01:02:02 +0100 Subject: [PATCH] Windows: fix Clang warnings about unused assignations --- libusb/os/threads_windows.c | 1 - libusb/os/windows_usb.c | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/libusb/os/threads_windows.c b/libusb/os/threads_windows.c index 8a29920..fe2bfc1 100644 --- a/libusb/os/threads_windows.c +++ b/libusb/os/threads_windows.c @@ -99,7 +99,6 @@ int usbi_cond_destroy(usbi_cond_t *cond) { prev_pos = pos; } free(prev_pos); - prev_pos = pos = NULL; return 0; } diff --git a/libusb/os/windows_usb.c b/libusb/os/windows_usb.c index 0ae66e9..6552ed6 100644 --- a/libusb/os/windows_usb.c +++ b/libusb/os/windows_usb.c @@ -1183,7 +1183,7 @@ static int set_composite_interface(struct libusb_context* ctx, struct libusb_dev */ static int windows_get_device_list(struct libusb_context *ctx, struct discovered_devs **_discdevs) { - struct discovered_devs *discdevs = *_discdevs; + struct discovered_devs *discdevs; HDEVINFO dev_info = { 0 }; char* usb_class[2] = {"USB", "NUSB3"}; SP_DEVINFO_DATA dev_info_data; @@ -1262,7 +1262,6 @@ static int windows_get_device_list(struct libusb_context *ctx, struct discovered safe_free(dev_interface_details); safe_free(dev_interface_path); safe_free(dev_id_path); - session_id = 0; priv = parent_priv = NULL; dev = parent_dev = NULL; -- 2.7.4