summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPete Batard <pete@akeo.ie>2012-03-28 01:02:02 +0100
committerPete Batard <pete@akeo.ie>2012-03-28 11:47:24 +0100
commitc0e7b289fdb35687b90263b14426319d2b96b132 (patch)
tree214f34a77b6f626c7efcba21bb1420af221d604a
parent43997b58e56475e3efe5962e41a111184a8c2752 (diff)
downloadlibusb-c0e7b289fdb35687b90263b14426319d2b96b132.tar.gz
Windows: fix Clang warnings about unused assignations
-rw-r--r--libusb/os/threads_windows.c1
-rw-r--r--libusb/os/windows_usb.c3
2 files changed, 1 insertions, 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;