diff --git a/src/joystick/SDL_joystick.c b/src/joystick/SDL_joystick.c index 8133e706c..4e57ac892 100644 --- a/src/joystick/SDL_joystick.c +++ b/src/joystick/SDL_joystick.c @@ -102,6 +102,10 @@ static SDL_JoystickDriver *SDL_joystick_drivers[] = { &SDL_DUMMY_JoystickDriver #endif }; + +#ifndef SDL_THREAD_SAFETY_ANALYSIS +static +#endif SDL_mutex *SDL_joystick_lock = NULL; /* This needs to support recursive locks */ static int SDL_joysticks_locked; static SDL_bool SDL_joysticks_initialized; diff --git a/src/joystick/hidapi/SDL_hidapi_rumble.c b/src/joystick/hidapi/SDL_hidapi_rumble.c index 086efc035..8a9fb524b 100644 --- a/src/joystick/hidapi/SDL_hidapi_rumble.c +++ b/src/joystick/hidapi/SDL_hidapi_rumble.c @@ -49,6 +49,9 @@ typedef struct SDL_HIDAPI_RumbleContext SDL_HIDAPI_RumbleRequest *requests_tail; } SDL_HIDAPI_RumbleContext; +#ifndef SDL_THREAD_SAFETY_ANALYSIS +static +#endif SDL_mutex *SDL_HIDAPI_rumble_lock; static SDL_HIDAPI_RumbleContext rumble_context SDL_GUARDED_BY(SDL_HIDAPI_rumble_lock);