From 4237b1834e025f8721ec37b26ba604ccee93547c Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Thu, 19 Dec 2019 04:31:00 -0800 Subject: [PATCH] Fixed compiler warning --- src/hidapi/SDL_hidapi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hidapi/SDL_hidapi.c b/src/hidapi/SDL_hidapi.c index 1bb5756e5927c..a06c2cfd3ff50 100644 --- a/src/hidapi/SDL_hidapi.c +++ b/src/hidapi/SDL_hidapi.c @@ -535,7 +535,9 @@ struct hid_device_info HID_API_EXPORT * HID_API_CALL hid_enumerate(unsigned shor struct PLATFORM_hid_device_info *raw_dev; #endif /* HAVE_PLATFORM_BACKEND */ struct hid_device_info *devs = NULL, *last = NULL, *new_dev; +#ifdef SDL_LIBUSB_DYNAMIC SDL_bool bFound; +#endif if (SDL_hidapi_wasinit == SDL_FALSE) { hid_init();