mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-18 09:18:14 +00:00
Fixed error: unused variable 'axes' [-Werror,-Wunused-variable]
(cherry picked from commit 814a94c349
)
This commit is contained in:
@@ -790,11 +790,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