From b99510836e8961369c4dfd08f7c905c4b9f9c55e Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Wed, 24 Nov 2021 13:04:50 -0600 Subject: [PATCH] SDL_mfijoystick.m: Fix -Wshadow warning --- src/joystick/iphoneos/SDL_mfijoystick.m | 1 - 1 file changed, 1 deletion(-) diff --git a/src/joystick/iphoneos/SDL_mfijoystick.m b/src/joystick/iphoneos/SDL_mfijoystick.m index 605651f57..3508736e6 100644 --- a/src/joystick/iphoneos/SDL_mfijoystick.m +++ b/src/joystick/iphoneos/SDL_mfijoystick.m @@ -1473,7 +1473,6 @@ IOS_JoystickClose(SDL_Joystick *joystick) #ifdef ENABLE_MFI_SYSTEM_GESTURE_STATE if (@available(macOS 11.0, iOS 14.0, tvOS 14.0, *)) { - GCController *controller = joystick->hwdata->controller; for (id key in controller.physicalInputProfile.buttons) { GCControllerButtonInput *button = controller.physicalInputProfile.buttons[key]; if ([button isBoundToSystemGesture]) {