summaryrefslogtreecommitdiff
path: root/libusb/os
diff options
context:
space:
mode:
authorSean McBride <sean@rogue-research.com>2011-09-19 12:38:20 -0400
committerPeter Stuge <peter@stuge.se>2011-10-17 16:25:51 +0200
commit59cc79f2c8e5da41fe2c761bf1e1d9cd18ddac81 (patch)
tree499b17265c594c630b4dd35a015372b99751cb34 /libusb/os
parent1cc5b4a9fb984e83681ae5c797fa6b22bc20f809 (diff)
downloadlibusb-59cc79f2c8e5da41fe2c761bf1e1d9cd18ddac81.tar.gz
Fix unused variable warnings when without timerfd and/or when on Darwin
References #121.
Diffstat (limited to 'libusb/os')
-rw-r--r--libusb/os/darwin_usb.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libusb/os/darwin_usb.c b/libusb/os/darwin_usb.c
index d81e9f0..87e0e49 100644
--- a/libusb/os/darwin_usb.c
+++ b/libusb/os/darwin_usb.c
@@ -1243,14 +1243,19 @@ static int darwin_kernel_driver_active(struct libusb_device_handle *dev_handle,
/* attaching/detaching kernel drivers is not currently supported (maybe in the future?) */
static int darwin_attach_kernel_driver (struct libusb_device_handle *dev_handle, int interface) {
+ (void)dev_handle;
+ (void)interface;
return LIBUSB_ERROR_NOT_SUPPORTED;
}
static int darwin_detach_kernel_driver (struct libusb_device_handle *dev_handle, int interface) {
+ (void)dev_handle;
+ (void)interface;
return LIBUSB_ERROR_NOT_SUPPORTED;
}
static void darwin_destroy_device(struct libusb_device *dev) {
+ (void)dev;
}
static int submit_bulk_transfer(struct usbi_transfer *itransfer) {