SDL_sysjoystick.c:983: warning: 'return' with a value, in function returning void

This commit is contained in:
Sam Lantinga
2006-05-01 06:40:00 +00:00
parent 7aa243af00
commit cb3a0ae8da

View File

@@ -980,7 +980,8 @@ static __inline__ void JS_HandleEvents(SDL_Joystick *joystick)
#ifndef NO_LOGICAL_JOYSTICKS
if (SDL_joylist[joystick->index].fname == NULL) {
SDL_joylist_head(i, joystick->index);
return JS_HandleEvents(SDL_joylist[i].joy);
JS_HandleEvents(SDL_joylist[i].joy);
return;
}
#endif