mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-30 08:27:39 +00:00
Android: C89 cleanup to avoid warnings/errors since the default gcc mode on Android is still pre-C99.
This commit is contained in:
parent
5ed63ae317
commit
704298c0c2
3 changed files with 123 additions and 63 deletions
|
@ -323,6 +323,7 @@ Android_RemoveJoystick(int device_id)
|
|||
{
|
||||
SDL_joylist_item *item = SDL_joylist;
|
||||
SDL_joylist_item *prev = NULL;
|
||||
int retval;
|
||||
#if !SDL_EVENTS_DISABLED
|
||||
SDL_Event event;
|
||||
#endif
|
||||
|
@ -340,7 +341,7 @@ Android_RemoveJoystick(int device_id)
|
|||
return -1;
|
||||
}
|
||||
|
||||
const int retval = item->device_instance;
|
||||
retval = item->device_instance;
|
||||
if (item->joystick) {
|
||||
item->joystick->hwdata = NULL;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue