summaryrefslogtreecommitdiff
path: root/libusb/os
diff options
context:
space:
mode:
authorPete Batard <pbatard@gmail.com>2010-05-17 15:42:39 +0100
committerPete Batard <pbatard@gmail.com>2010-05-17 15:42:39 +0100
commit3ca89838af33d005c43fae96b8464e8a0996c17c (patch)
treeb7a6217eac53a6f3389cc1b09da7c55a99e213f7 /libusb/os
parentffb9d6b415a56ac5fe545236a0b77707c520edbc (diff)
downloadlibusb-3ca89838af33d005c43fae96b8464e8a0996c17c.tar.gz
fixed remaining warnings due to autoclaim removalpbr277
Diffstat (limited to 'libusb/os')
-rw-r--r--libusb/os/windows_usb.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libusb/os/windows_usb.c b/libusb/os/windows_usb.c
index d68d377..af74464 100644
--- a/libusb/os/windows_usb.c
+++ b/libusb/os/windows_usb.c
@@ -2543,7 +2543,9 @@ static int winusb_submit_control_transfer(struct usbi_transfer *itransfer)
struct libusb_context *ctx = DEVICE_CTX(transfer->dev_handle->dev);
struct windows_transfer_priv *transfer_priv = usbi_transfer_get_os_priv(itransfer);
struct windows_device_handle_priv *handle_priv = (struct windows_device_handle_priv *)transfer->dev_handle->os_priv;
+#ifndef USE_HIDD_FOR_REPORTS
struct windows_device_priv *priv = __device_priv(transfer->dev_handle->dev);
+#endif
WINUSB_SETUP_PACKET *setup = (WINUSB_SETUP_PACKET *) transfer->buffer;
ULONG size;
HANDLE winusb_handle;
@@ -3647,7 +3649,9 @@ static int hid_set_interface_altsetting(struct libusb_device_handle *dev_handle,
static int hid_submit_control_transfer(struct usbi_transfer *itransfer)
{
struct libusb_transfer *transfer = __USBI_TRANSFER_TO_LIBUSB_TRANSFER(itransfer);
+#ifndef USE_HIDD_FOR_REPORTS
struct libusb_context *ctx = DEVICE_CTX(transfer->dev_handle->dev);
+#endif
struct windows_transfer_priv *transfer_priv = usbi_transfer_get_os_priv(itransfer);
struct windows_device_handle_priv *handle_priv = (struct windows_device_handle_priv *)transfer->dev_handle->os_priv;
struct windows_device_priv *priv = __device_priv(transfer->dev_handle->dev);