From dfed862a6642d9fbdf4663c9b2823cde5ac635c3 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Thu, 28 Jul 2022 19:35:46 -0700 Subject: [PATCH] Fixed variable shadow warning --- src/joystick/hidapi/SDL_hidapijoystick.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/joystick/hidapi/SDL_hidapijoystick.c b/src/joystick/hidapi/SDL_hidapijoystick.c index 2e66402f6..a8acf25c1 100644 --- a/src/joystick/hidapi/SDL_hidapijoystick.c +++ b/src/joystick/hidapi/SDL_hidapijoystick.c @@ -1240,7 +1240,6 @@ HIDAPI_JoystickQuit(void) SDL_HIDAPI_Device *device = SDL_HIDAPI_devices; if (device->parent) { /* When a child device goes away, so does the parent */ - int i; device = device->parent; for (i = 0; i < device->num_children; ++i) { HIDAPI_DelDevice(device->children[i]);