Skip to content

Commit

Permalink
Warning cleanups/unused variables removal
Browse files Browse the repository at this point in the history
  • Loading branch information
LibretroAdmin committed Dec 27, 2024
1 parent b8cdaea commit 0d4eeb6
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 8 deletions.
1 change: 0 additions & 1 deletion configuration.c
Original file line number Diff line number Diff line change
Expand Up @@ -6004,7 +6004,6 @@ bool input_remapping_load_file(void *data, const char *path)
**/
bool input_remapping_save_file(const char *path)
{
size_t _len;
bool ret;
unsigned i, j;
char remap_file_dir[DIR_MAX_LENGTH];
Expand Down
1 change: 0 additions & 1 deletion gfx/gfx_thumbnail.c
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,6 @@ void gfx_thumbnail_request(
else if (network_on_demand_thumbnails)
{
enum playlist_thumbnail_name_flags curr_flag;
const char *system = NULL;
static char last_img_name[PATH_MAX_LENGTH] = {0};
settings_t *settings = config_get_ptr();
if (!playlist)
Expand Down
1 change: 0 additions & 1 deletion gfx/video_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -1940,7 +1940,6 @@ uint32_t video_driver_get_frame_time_delta_usec(void)
float video_driver_get_original_fps(void)
{
video_driver_state_t *video_st = &video_driver_st;
struct retro_system_av_info *av_info = &video_st->av_info;
return (float)video_st->av_info.timing.fps;
}

Expand Down
2 changes: 0 additions & 2 deletions menu/drivers/rgui.c
Original file line number Diff line number Diff line change
Expand Up @@ -6771,8 +6771,6 @@ static void rgui_navigation_clear(void *data, bool pending_push)

static void rgui_load_current_thumbnails(rgui_t *rgui, struct menu_state *menu_st, bool download_missing)
{
const char *thumbnail_path = NULL;
const char *left_thumbnail_path = NULL;
bool thumbnails_missing = false;

/* Right (or fullscreen) thumbnail */
Expand Down
2 changes: 1 addition & 1 deletion menu/menu_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -4037,6 +4037,7 @@ void menu_entries_search_append_terms_string(char *s, size_t len)
}
}

#ifdef HAVE_ACCESSIBILITY
static size_t get_current_menu_value(
struct menu_state *menu_st, char *s, size_t len)
{
Expand All @@ -4049,7 +4050,6 @@ static size_t get_current_menu_value(
return strlcpy(s, entry.value, len);
}

#ifdef HAVE_ACCESSIBILITY
static size_t menu_driver_get_current_menu_label(struct menu_state *menu_st,
char *s, size_t len)
{
Expand Down
10 changes: 8 additions & 2 deletions menu/menu_setting.c
Original file line number Diff line number Diff line change
Expand Up @@ -9300,7 +9300,11 @@ static void runahead_change_handler(rarch_setting_t *setting)
runloop_state_t *runloop_st = runloop_state_get_ptr();
preempt_t *preempt = runloop_st->preempt_data;
unsigned run_ahead_frames = settings->uints.run_ahead_frames;
bool preempt_enable, run_ahead_enabled, secondary_instance;
bool preempt_enable;
#if (defined(HAVE_DYNAMIC) || defined(HAVE_DYLIB))
bool secondary_instance;
bool run_ahead_enabled;
#endif

if (!setting)
return;
Expand Down Expand Up @@ -9335,8 +9339,10 @@ static void runahead_change_handler(rarch_setting_t *setting)
}

preempt_enable = settings->bools.preemptive_frames_enable;
run_ahead_enabled = settings->bools.run_ahead_enabled;
#if (defined(HAVE_DYNAMIC) || defined(HAVE_DYLIB))
secondary_instance = settings->bools.run_ahead_secondary_instance;
run_ahead_enabled = settings->bools.run_ahead_enabled;
#endif

/* Toggle or update preemptive frames if needed */
if ( preempt_enable != !!preempt
Expand Down

0 comments on commit 0d4eeb6

Please sign in to comment.