mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-04 17:06:25 +00:00
fix a few 'unused but set variable' and 'unused function' warnings
This commit is contained in:

committed by
Sam Lantinga

parent
f4d1f5ed54
commit
3d35c08585
@@ -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
|
||||
|
Reference in New Issue
Block a user