mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-11 17:05:41 +00:00
Fixed error: unused variable 'axes' [-Werror,-Wunused-variable]
(cherry picked from commit814a94c349) (cherry picked from commit6669d04ea6)
This commit is contained in:
parent
0fb294ade4
commit
8538d5dcf1
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