diff options
author | Pete Batard <pbatard@gmail.com> | 2010-03-02 15:53:43 +0000 |
---|---|---|
committer | Pete Batard <pbatard@gmail.com> | 2010-03-02 15:53:43 +0000 |
commit | 4c38f2bef9640a43d45f245adeb1f31dec295e14 (patch) | |
tree | 605e90c1d3dbf033ce766664c1e9a15cf9247cc5 /libusb | |
parent | 12f7a5344e4a42d8daeb501e0181829336a73ed3 (diff) | |
download | libusb-4c38f2bef9640a43d45f245adeb1f31dec295e14.tar.gz |
fixed MinGW warnings
Diffstat (limited to 'libusb')
-rw-r--r-- | libusb/core.c | 1 | ||||
-rw-r--r-- | libusb/os/windows_compat.c | 2 |
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 |