From 0c42e339e1afc5d6ac25d2e64d9cbf5085868d13 Mon Sep 17 00:00:00 2001 From: libretroadmin Date: Wed, 4 Jan 2023 18:42:35 +0100 Subject: [PATCH] Silence some warnings that popup in Xcode --- audio/drivers/coreaudio.c | 2 ++ gfx/gfx_widgets.h | 2 +- gfx/video_shader_parse.c | 3 --- gfx/widgets/gfx_widget_achievement_popup.c | 2 +- tasks/task_autodetect.c | 1 - 5 files changed, 4 insertions(+), 6 deletions(-) diff --git a/audio/drivers/coreaudio.c b/audio/drivers/coreaudio.c index 4363d44651..e1d577b964 100644 --- a/audio/drivers/coreaudio.c +++ b/audio/drivers/coreaudio.c @@ -203,7 +203,9 @@ static void *coreaudio_init(const char *device, #endif AURenderCallbackStruct cb = {0}; AudioStreamBasicDescription stream_desc = {0}; +#if TARGET_OS_IOS static bool session_initialized = false; +#endif #if !HAS_MACOSX_10_12 ComponentDescription desc = {0}; #else diff --git a/gfx/gfx_widgets.h b/gfx/gfx_widgets.h index 7dc67bb731..a10d199c3e 100644 --- a/gfx/gfx_widgets.h +++ b/gfx/gfx_widgets.h @@ -376,7 +376,7 @@ void gfx_widgets_ai_service_overlay_unload(void); #endif #ifdef HAVE_CHEEVOS -void gfx_widgets_update_cheevos_appearance(); +void gfx_widgets_update_cheevos_appearance(void); void gfx_widgets_push_achievement(const char *title, const char* subtitle, const char *badge); void gfx_widgets_set_leaderboard_display(unsigned id, const char* value); void gfx_widgets_set_challenge_display(unsigned id, const char* badge); diff --git a/gfx/video_shader_parse.c b/gfx/video_shader_parse.c index 97ec884032..9e02ac5f86 100644 --- a/gfx/video_shader_parse.c +++ b/gfx/video_shader_parse.c @@ -2653,8 +2653,6 @@ bool video_shader_combine_preset_and_apply( bool ret = false; char combined_preset_path[PATH_MAX_LENGTH]; char combined_preset_name[PATH_MAX_LENGTH]; - runloop_state_t *runloop_st = runloop_state_get_ptr(); - const char *current_preset_path = runloop_st->runtime_shader_preset_path; const char *preset_ext = video_shader_get_preset_extension(type); struct video_shader *shader_to_append = (struct video_shader*) calloc(1, sizeof(*shader_to_append)); struct video_shader *combined_shader = (struct video_shader*) calloc(1, sizeof(*combined_shader)); @@ -2695,7 +2693,6 @@ bool video_shader_apply_shader( runloop_state_t *runloop_st = runloop_state_get_ptr(); const char *core_name = runloop_st->system.info.library_name; const char *preset_file = NULL; - const char* current_preset_path = runloop_st->runtime_shader_preset_path; #ifdef HAVE_MENU struct video_shader *shader = menu_shader_get(); #endif diff --git a/gfx/widgets/gfx_widget_achievement_popup.c b/gfx/widgets/gfx_widget_achievement_popup.c index 24d0bdd6cb..15bf0faab3 100644 --- a/gfx/widgets/gfx_widget_achievement_popup.c +++ b/gfx/widgets/gfx_widget_achievement_popup.c @@ -479,7 +479,7 @@ static void gfx_widget_achievement_popup_unfold(void* userdata) gfx_animation_timer_start(&state->timer, &timer); } -void gfx_widgets_update_cheevos_appearance() +void gfx_widgets_update_cheevos_appearance(void) { gfx_widget_achievement_popup_state_t* state = &p_w_achievement_popup_st; const settings_t* settings = config_get_ptr(); diff --git a/tasks/task_autodetect.c b/tasks/task_autodetect.c index eb4febdb34..a2d02197d3 100644 --- a/tasks/task_autodetect.c +++ b/tasks/task_autodetect.c @@ -784,7 +784,6 @@ static void cb_input_autoconfigure_disconnect( static void input_autoconfigure_disconnect_handler(retro_task_t *task) { - size_t _len; autoconfig_handle_t *autoconfig_handle = NULL; const char *device_display_name = NULL; char task_title[NAME_MAX_LENGTH + 16];