mirror of
https://github.com/libretro/RetroArch
synced 2025-03-12 04:14:23 +00:00
Warning cleanups/unused variables removal
This commit is contained in:
parent
b8cdaeae72
commit
0d4eeb647a
@ -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];
|
||||
|
@ -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)
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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 */
|
||||
|
@ -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)
|
||||
{
|
||||
@ -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)
|
||||
{
|
||||
|
@ -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;
|
||||
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user