diff --git a/input/drivers_hid/wiiu_hid.c b/input/drivers_hid/wiiu_hid.c index 6470a6369e..998bc1b479 100644 --- a/input/drivers_hid/wiiu_hid.c +++ b/input/drivers_hid/wiiu_hid.c @@ -244,7 +244,6 @@ static int32_t wiiu_hid_read(void *data, void *buffer, size_t size) static void start_polling_thread(wiiu_hid_t *hid) { OSThreadAttributes attributes = OS_THREAD_ATTRIB_AFFINITY_CPU2; - BOOL result = false; int32_t stack_size = 0x8000; int32_t priority = 10; OSThread *thread = new_thread(); @@ -557,10 +556,13 @@ static void report_hid_error(const char *msg, wiiu_adapter_t *adapter, int32_t e case -111: RARCH_ERR("[hid]: invalid device handle (%s)\n", device); break; -#if 0 default: +#if 0 RARCH_ERR("[hid]: Unknown error (%d:%d: %s)\n", error_category, hid_error_code, device); +#else + (void)error_category; + break; #endif } } diff --git a/input/drivers_joypad/wiiu/hidpad_driver.c b/input/drivers_joypad/wiiu/hidpad_driver.c index 5757714d62..2260e01e7e 100644 --- a/input/drivers_joypad/wiiu/hidpad_driver.c +++ b/input/drivers_joypad/wiiu/hidpad_driver.c @@ -34,8 +34,7 @@ static bool init_hid_driver(void) static bool hidpad_init(void *data) { - (void *)data; - int i; + (void)data; if(!init_hid_driver()) { diff --git a/input/include/wiiu/hid.h b/input/include/wiiu/hid.h index 38f6ff4d04..3d2a44301e 100644 --- a/input/include/wiiu/hid.h +++ b/input/include/wiiu/hid.h @@ -116,9 +116,7 @@ static void wiiu_hid_attach(wiiu_hid_t *hid, wiiu_attach_event *event); static void wiiu_hid_detach(wiiu_hid_t *hid, wiiu_attach_event *event); static void synchronized_process_adapters(wiiu_hid_t *hid); static void synchronized_add_to_adapters_list(wiiu_adapter_t *adapter); -static wiiu_adapter_t *synchronized_remove_from_adapters_list(uint32_t handle); static void synchronized_add_event(wiiu_attach_event *event); -static void wiiu_start_read_loop(wiiu_adapter_t *adapter); static void wiiu_hid_read_loop_callback(uint32_t handle, int32_t error, uint8_t *buffer, uint32_t buffer_size, void *userdata); static void wiiu_hid_polling_thread_cleanup(OSThread *thread, void *stack);