Fixed error: unused variable 'axes' [-Werror,-Wunused-variable]

This commit is contained in:
Sam Lantinga
2024-02-12 11:18:11 -08:00
parent b39246936b
commit 814a94c349

View File

@@ -761,11 +761,11 @@ static SDL_JoystickDeviceItem *IOS_RemoveJoystickDevice(SDL_JoystickDeviceItem *
device->controller = nil;
}
if (device->axes) {
NSArray *axes = CFBridgingRelease((__bridge CFTypeRef)(device->axes));
CFRelease((__bridge CFTypeRef)device->axes);
device->axes = nil;
}
if (device->buttons) {
NSArray *buttons = CFBridgingRelease((__bridge CFTypeRef)(device->buttons));
CFRelease((__bridge CFTypeRef)device->buttons);
device->buttons = nil;
}
}