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;
|
device->controller = nil;
|
||||||
}
|
}
|
||||||
if (device->axes) {
|
if (device->axes) {
|
||||||
NSArray *axes = CFBridgingRelease((__bridge CFTypeRef)(device->axes));
|
CFRelease((__bridge CFTypeRef)device->axes);
|
||||||
device->axes = nil;
|
device->axes = nil;
|
||||||
}
|
}
|
||||||
if (device->buttons) {
|
if (device->buttons) {
|
||||||
NSArray *buttons = CFBridgingRelease((__bridge CFTypeRef)(device->buttons));
|
CFRelease((__bridge CFTypeRef)device->buttons);
|
||||||
device->buttons = nil;
|
device->buttons = nil;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user