We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 5026

Summary: [Patch] Fix compiler warning for MinGW builds using libusb support
Product: SDL Reporter: Ethan Lee <flibitijibibo>
Component: joystickAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: HG 2.0   
Hardware: All   
OS: Windows (All)   
Attachments: Warning fix for MinGW hidapi build

Description Ethan Lee 2020-03-11 18:20:32 UTC
Created attachment 4249 [details]
Warning fix for MinGW hidapi build

Attached is a small patch to fix a warning for MinGW builds that both enable hidapi support and use the dynamic libusb support. The only time you would run into this is if all of the following conditions are met:

- Build with MinGW, configured with --enable-hidapi
- Dynamic libusb support is found and enabled
- A GameCube adapter is connected on Windows and is running with the WinUSB device driver
Comment 1 Sam Lantinga 2020-03-14 02:14:23 UTC
Patch added, thanks!
https://hg.libsdl.org/SDL/rev/1daea6276f1b