mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-11 22:08:14 +00:00
Patch from Sylvain to fix clang warnings
This commit is contained in:
@@ -282,6 +282,7 @@ MaybeRemoveDevice(const char *path)
|
||||
}
|
||||
#endif
|
||||
|
||||
#if ! SDL_USE_LIBUDEV
|
||||
static int
|
||||
JoystickInitWithoutUdev(void)
|
||||
{
|
||||
@@ -298,7 +299,7 @@ JoystickInitWithoutUdev(void)
|
||||
|
||||
return numjoysticks;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
#if SDL_USE_LIBUDEV
|
||||
static int
|
||||
@@ -342,9 +343,9 @@ SDL_SYS_JoystickInit(void)
|
||||
|
||||
#if SDL_USE_LIBUDEV
|
||||
return JoystickInitWithUdev();
|
||||
#endif
|
||||
|
||||
#else
|
||||
return JoystickInitWithoutUdev();
|
||||
#endif
|
||||
}
|
||||
|
||||
int SDL_SYS_NumJoysticks()
|
||||
|
Reference in New Issue
Block a user