From 98a573033d9a7da60582011617e5c664dbaf9367 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 11 Jan 2020 04:26:31 +0100 Subject: [PATCH] Prevent another warning --- retroarch.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/retroarch.c b/retroarch.c index 2f52985fba..0923101ce4 100644 --- a/retroarch.c +++ b/retroarch.c @@ -1168,7 +1168,9 @@ static const void *wifi_driver_find_handle(int idx); static const void *camera_driver_find_handle(int idx); static const void *input_driver_find_handle(int idx); static const void *joypad_driver_find_handle(int idx); +#ifdef HAVE_HID static const void *hid_driver_find_handle(int idx); +#endif static bool midi_driver_read(uint8_t *byte); static bool midi_driver_write(uint8_t byte, uint32_t delta_time); @@ -16503,13 +16505,6 @@ void input_pad_connect(unsigned port, input_device_driver_t *driver) } #ifdef HAVE_HID -/** - * hid_driver_find_handle: - * @idx : index of driver to get handle to. - * - * Returns: handle to HID driver at index. Can be NULL - * if nothing found. - **/ static const void *hid_driver_find_handle(int idx) { const void *drv = hid_drivers[idx];