Patch from Sylvain to fix clang warnings

This commit is contained in:
Sam Lantinga 2016-11-13 22:57:41 -08:00
parent c13a077d15
commit 57d01d7d67
50 changed files with 285 additions and 167 deletions

View file

@ -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()