Patch from Sylvain to fix clang warnings
This commit is contained in:
parent
c13a077d15
commit
57d01d7d67
50 changed files with 285 additions and 167 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue