mirror of
https://github.com/libretro/RetroArch.git
synced 2025-01-31 05:56:07 +00:00
(WiiU/hid) Warning fixes
This commit is contained in:
parent
cdaf907467
commit
41541128c5
@ -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
|
||||
}
|
||||
}
|
||||
|
@ -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())
|
||||
{
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user