mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-05 19:08:12 +00:00
Fixed error: unused variable 'axes' [-Werror,-Wunused-variable]
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user