Skip to content

Commit

Permalink
Fixed build error
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
slouken committed Mar 15, 2020
1 parent 1ff483d commit 151c8fb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/joystick/virtual/SDL_sysjoystick.c
Expand Up @@ -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;
}
Expand All @@ -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) {
Expand Down

0 comments on commit 151c8fb

Please sign in to comment.