mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-20 13:06:05 +00:00
Fixed error: unused variable 'axes' [-Werror,-Wunused-variable]
(cherry picked from commit 814a94c349)
This commit is contained in:
parent
971c5c2610
commit
6669d04ea6
1 changed files with 2 additions and 2 deletions
|
|
@ -790,11 +790,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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue