summaryrefslogtreecommitdiff
path: root/libusb
diff options
context:
space:
mode:
Diffstat (limited to 'libusb')
-rw-r--r--libusb/core.c1
-rw-r--r--libusb/os/windows_compat.c2
2 files changed, 1 insertions, 2 deletions
diff --git a/libusb/core.c b/libusb/core.c
index 22c8265..ed41c82 100644
--- a/libusb/core.c
+++ b/libusb/core.c
@@ -905,7 +905,6 @@ API_EXPORTED int libusb_open(libusb_device *dev, libusb_device_handle **handle)
struct libusb_context *ctx = DEVICE_CTX(dev);
struct libusb_device_handle *_handle;
size_t priv_size = usbi_backend->device_handle_priv_size;
- unsigned char dummy = 1;
ssize_t r;
usbi_dbg("open %d.%d", dev->bus_number, dev->device_address);
diff --git a/libusb/os/windows_compat.c b/libusb/os/windows_compat.c
index 179e178..5ce7a88 100644
--- a/libusb/os/windows_compat.c
+++ b/libusb/os/windows_compat.c
@@ -622,10 +622,10 @@ int usbi_poll(struct pollfd *fds, unsigned int nfds, int timeout)
HANDLE *handles_to_wait_on;
int *handle_to_index;
DWORD nb_handles_to_wait_on = 0;
- DWORD nb_extra_handles = 0;
DWORD ret;
#if defined(DYNAMIC_FDS)
+ DWORD nb_extra_handles = 0;
unsigned j;
// To address the possibility of missing new fds between the time the new