Fix C89 declaration for macOS modules.
Since Clang 14, `-Wdeclaration-after-statement` is enforced on every standard.
This commit is contained in:
parent
e4a8087551
commit
6c536afdb7
17 changed files with 375 additions and 270 deletions
|
@ -985,7 +985,7 @@ DARWIN_JoystickUpdate(SDL_Joystick *joystick)
|
|||
recDevice *device = joystick->hwdata;
|
||||
recElement *element;
|
||||
SInt32 value, range;
|
||||
int i;
|
||||
int i, goodRead = SDL_FALSE;
|
||||
|
||||
if (!device) {
|
||||
return;
|
||||
|
@ -1001,7 +1001,6 @@ DARWIN_JoystickUpdate(SDL_Joystick *joystick)
|
|||
element = device->firstAxis;
|
||||
i = 0;
|
||||
|
||||
int goodRead = SDL_FALSE;
|
||||
while (element) {
|
||||
goodRead = GetHIDScaledCalibratedState(device, element, -32768, 32767, &value);
|
||||
if (goodRead) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue