Fixed build error
authorSam Lantinga <slouken@libsdl.org>
Sat, 14 Mar 2020 17:45:00 -0700
changeset 13625d195863f8226
parent 13624 8fb0748c2cce
child 13626 4377c59b636e
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.
src/joystick/virtual/SDL_sysjoystick.c
     1.1 --- a/src/joystick/virtual/SDL_sysjoystick.c	Fri Mar 13 21:28:09 2020 -0700
     1.2 +++ b/src/joystick/virtual/SDL_sysjoystick.c	Sat Mar 14 17:45:00 2020 -0700
     1.3 @@ -50,6 +50,9 @@
     1.4  static void
     1.5  VIRTUAL_FreeHWData(joystick_hwdata *hwdata)
     1.6  {
     1.7 +    joystick_hwdata * cur = g_VJoys;
     1.8 +    joystick_hwdata * prev = NULL;
     1.9 + 
    1.10      if (!hwdata) {
    1.11          return;
    1.12      }
    1.13 @@ -71,8 +74,6 @@
    1.14      }
    1.15  
    1.16      /* Remove hwdata from SDL-global list */
    1.17 -    joystick_hwdata * cur = g_VJoys;
    1.18 -    joystick_hwdata * prev = NULL;
    1.19      while (cur) {
    1.20          if (hwdata == cur) {
    1.21              if (prev) {