mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-16 11:06:49 +01:00
Fixed build error
Malte Kie?ling I get a build error in SDL_sysjoystick.c:74 for the merged patch, but its nothing to sweat about, just -Werror=declaration-after-statement doing its usual stuff.
This commit is contained in:
parent
1ff483d1f3
commit
151c8fbf19
@ -50,6 +50,9 @@ VIRTUAL_HWDataForIndex(int device_index)
|
||||
static void
|
||||
VIRTUAL_FreeHWData(joystick_hwdata *hwdata)
|
||||
{
|
||||
joystick_hwdata * cur = g_VJoys;
|
||||
joystick_hwdata * prev = NULL;
|
||||
|
||||
if (!hwdata) {
|
||||
return;
|
||||
}
|
||||
@ -71,8 +74,6 @@ VIRTUAL_FreeHWData(joystick_hwdata *hwdata)
|
||||
}
|
||||
|
||||
/* Remove hwdata from SDL-global list */
|
||||
joystick_hwdata * cur = g_VJoys;
|
||||
joystick_hwdata * prev = NULL;
|
||||
while (cur) {
|
||||
if (hwdata == cur) {
|
||||
if (prev) {
|
||||
|
Loading…
Reference in New Issue
Block a user