mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2025-02-17 20:34:28 +01:00
Fixed compiler warning
This commit is contained in:
parent
c5024a182d
commit
2481ab9340
@ -918,7 +918,7 @@ HIDAPI_JoystickGetDeviceGUID(int device_index)
|
|||||||
static SDL_JoystickID
|
static SDL_JoystickID
|
||||||
HIDAPI_JoystickGetDeviceInstanceID(int device_index)
|
HIDAPI_JoystickGetDeviceInstanceID(int device_index)
|
||||||
{
|
{
|
||||||
SDL_JoystickID joystickID;
|
SDL_JoystickID joystickID = -1;
|
||||||
SDL_LockMutex(SDL_HIDAPI_mutex);
|
SDL_LockMutex(SDL_HIDAPI_mutex);
|
||||||
HIDAPI_GetDeviceByIndex(device_index, &joystickID);
|
HIDAPI_GetDeviceByIndex(device_index, &joystickID);
|
||||||
SDL_UnlockMutex(SDL_HIDAPI_mutex);
|
SDL_UnlockMutex(SDL_HIDAPI_mutex);
|
||||||
|
Loading…
Reference in New Issue
Block a user