mirror of
https://github.com/RPCS3/libusb.git
synced 2026-01-31 01:25:19 +01:00
Fix unused parameter warnings
Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
This commit is contained in:
committed by
Chris Dickens
parent
8e1a282583
commit
830a9cb27d
@@ -411,6 +411,8 @@ static int alloc_transfers(void)
|
||||
|
||||
static void sighandler(int signum)
|
||||
{
|
||||
(void)signum;
|
||||
|
||||
do_exit = 1;
|
||||
}
|
||||
|
||||
|
||||
@@ -84,6 +84,8 @@ static void *poll_thread_main(void *arg)
|
||||
int r = 0;
|
||||
printf("poll thread running\n");
|
||||
|
||||
(void)arg;
|
||||
|
||||
while (!do_exit) {
|
||||
struct timeval tv = { 1, 0 };
|
||||
r = libusb_handle_events_timeout(NULL, &tv);
|
||||
@@ -441,6 +443,8 @@ static int alloc_transfers(void)
|
||||
|
||||
static void sighandler(int signum)
|
||||
{
|
||||
(void)signum;
|
||||
|
||||
request_exit(1);
|
||||
}
|
||||
|
||||
|
||||
@@ -31,6 +31,11 @@ static int LIBUSB_CALL hotplug_callback(libusb_context *ctx, libusb_device *dev,
|
||||
struct libusb_device_descriptor desc;
|
||||
int rc;
|
||||
|
||||
(void)ctx;
|
||||
(void)dev;
|
||||
(void)event;
|
||||
(void)user_data;
|
||||
|
||||
rc = libusb_get_device_descriptor(dev, &desc);
|
||||
if (LIBUSB_SUCCESS != rc) {
|
||||
fprintf (stderr, "Error getting device descriptor\n");
|
||||
@@ -55,6 +60,11 @@ static int LIBUSB_CALL hotplug_callback(libusb_context *ctx, libusb_device *dev,
|
||||
|
||||
static int LIBUSB_CALL hotplug_callback_detach(libusb_context *ctx, libusb_device *dev, libusb_hotplug_event event, void *user_data)
|
||||
{
|
||||
(void)ctx;
|
||||
(void)dev;
|
||||
(void)event;
|
||||
(void)user_data;
|
||||
|
||||
printf ("Device detached\n");
|
||||
|
||||
if (handle) {
|
||||
|
||||
@@ -305,6 +305,7 @@ static usb_device_t **darwin_device_from_service (io_service_t service)
|
||||
}
|
||||
|
||||
static void darwin_devices_attached (void *ptr, io_iterator_t add_devices) {
|
||||
UNUSED(ptr);
|
||||
struct libusb_context *ctx;
|
||||
io_service_t service;
|
||||
|
||||
@@ -323,6 +324,7 @@ static void darwin_devices_attached (void *ptr, io_iterator_t add_devices) {
|
||||
}
|
||||
|
||||
static void darwin_devices_detached (void *ptr, io_iterator_t rem_devices) {
|
||||
UNUSED(ptr);
|
||||
struct libusb_device *dev = NULL;
|
||||
struct libusb_context *ctx;
|
||||
struct darwin_cached_device *old_device;
|
||||
|
||||
@@ -1 +1 @@
|
||||
#define LIBUSB_NANO 11234
|
||||
#define LIBUSB_NANO 11235
|
||||
|
||||
Reference in New Issue
Block a user