Fixed compiler warning (and undefined behavior) in game controller event filter.
--- a/src/joystick/SDL_gamecontroller.c Mon Feb 11 17:02:13 2013 -0800
+++ b/src/joystick/SDL_gamecontroller.c Mon Feb 11 17:25:58 2013 -0800
@@ -1065,7 +1065,8 @@
int
SDL_PrivateGameControllerButton(SDL_GameController * gamecontroller, SDL_CONTROLLER_BUTTON button, Uint8 state)
{
- if ( button == SDL_CONTROLLER_BUTTON_INVALID ) return;
+ if ( button == SDL_CONTROLLER_BUTTON_INVALID )
+ return (0);
int posted;
#if !SDL_EVENTS_DISABLED