Fixed build warning on Xcode 14.3

main
Sam Lantinga 2023-05-24 18:37:42 -07:00
parent b0d52f11f4
commit 2bf6a7c6af
4 changed files with 5 additions and 5 deletions

View File

@ -291,7 +291,7 @@ static SDL_AudioDevice **open_devices;
static BOOL session_active = NO; static BOOL session_active = NO;
static void pause_audio_devices() static void pause_audio_devices(void)
{ {
int i; int i;
@ -307,7 +307,7 @@ static void pause_audio_devices()
} }
} }
static void resume_audio_devices() static void resume_audio_devices(void)
{ {
int i; int i;

View File

@ -274,7 +274,7 @@ static id mouse_connect_observer = nil;
static id mouse_disconnect_observer = nil; static id mouse_disconnect_observer = nil;
static bool mouse_relative_mode = SDL_FALSE; static bool mouse_relative_mode = SDL_FALSE;
static void UpdatePointerLock() static void UpdatePointerLock(void)
{ {
SDL_VideoDevice *_this = SDL_GetVideoDevice(); SDL_VideoDevice *_this = SDL_GetVideoDevice();
SDL_Window *window; SDL_Window *window;

View File

@ -397,7 +397,7 @@ void UIKit_QuitModes(SDL_VideoDevice *_this)
} }
#if !TARGET_OS_TV #if !TARGET_OS_TV
void SDL_OnApplicationDidChangeStatusBarOrientation() void SDL_OnApplicationDidChangeStatusBarOrientation(void)
{ {
BOOL isLandscape = UIInterfaceOrientationIsLandscape([UIApplication sharedApplication].statusBarOrientation); BOOL isLandscape = UIInterfaceOrientationIsLandscape([UIApplication sharedApplication].statusBarOrientation);
SDL_VideoDisplay *display = SDL_GetVideoDisplay(SDL_GetPrimaryDisplay()); SDL_VideoDisplay *display = SDL_GetVideoDisplay(SDL_GetPrimaryDisplay());

View File

@ -234,7 +234,7 @@ CGRect UIKit_ComputeViewFrame(SDL_Window *window, UIScreen *screen)
return frame; return frame;
} }
void UIKit_ForceUpdateHomeIndicator() void UIKit_ForceUpdateHomeIndicator(void)
{ {
#if !TARGET_OS_TV #if !TARGET_OS_TV
/* Force the main SDL window to re-evaluate home indicator state */ /* Force the main SDL window to re-evaluate home indicator state */