Commit 3cba79970cc9c81fbd0b08ea72f7f5c243fc2466

Philipp Wiesemann 2013-11-18T23:43:15

Fixed unreachable return statement warning in gamecontroller source.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/joystick/SDL_gamecontroller.c b/src/joystick/SDL_gamecontroller.c
index 603d4db..26769b8 100644
--- a/src/joystick/SDL_gamecontroller.c
+++ b/src/joystick/SDL_gamecontroller.c
@@ -289,8 +289,6 @@ ControllerMapping_t *SDL_PrivateGetControllerMapping(int device_index)
         SDL_JoystickGUID jGUID = SDL_JoystickGetDeviceGUID( device_index );
         return SDL_PrivateGetControllerMappingForGUID(&jGUID);
     }
-
-    return NULL;
 }
 
 static const char* map_StringForControllerAxis[] = {