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 - [Patch] Fix compiler warning for MinGW builds using libusb support
Summary: [Patch] Fix compiler warning for MinGW builds using libusb support
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: joystick (show other bugs)
Version: HG 2.0
Hardware: All Windows (All)
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-11 18:20 UTC by Ethan Lee
Modified: 2020-03-14 02:14 UTC (History)
0 users

See Also:


Attachments
Warning fix for MinGW hidapi build (679 bytes, text/plain)
2020-03-11 18:20 UTC, Ethan Lee
Details

Note You need to log in before you can comment on or make changes to this bug.
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