fix a few 'unused but set variable' and 'unused function' warnings

This commit is contained in:
Steven Noonan 2022-10-02 17:30:03 -07:00 committed by Sam Lantinga
parent f4d1f5ed54
commit 3d35c08585
3 changed files with 3 additions and 6 deletions

View file

@ -522,7 +522,6 @@ WINDOWS_JoystickGetCount(void)
static void
WINDOWS_JoystickDetect(void)
{
int device_index = 0;
JoyStick_DeviceData *pCurList = NULL;
/* only enum the devices if the joystick thread told us something changed */
@ -570,7 +569,7 @@ WINDOWS_JoystickDetect(void)
pCurList = pListNext;
}
for (device_index = 0, pCurList = SYS_Joystick; pCurList; ++device_index, pCurList = pCurList->pNext) {
for (pCurList = SYS_Joystick; pCurList; pCurList = pCurList->pNext) {
if (pCurList->send_add_event) {
if (pCurList->bXInputDevice) {
#if SDL_HAPTIC_XINPUT