소스 검색

Fixed compiler warning

Sam Lantinga 5 년 전
부모
커밋
4237b1834e
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      src/hidapi/SDL_hidapi.c

+ 2 - 0
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();