mirror of
https://github.com/libretro/RetroArch
synced 2025-02-20 15:40:44 +00:00
Silence some warnings - unused variables/etc
This commit is contained in:
parent
f0cc87189c
commit
d3ff0425d8
@ -5031,7 +5031,6 @@ end:
|
||||
bool config_save_autoconf_profile(const
|
||||
char *device_name, unsigned user)
|
||||
{
|
||||
size_t len;
|
||||
unsigned i;
|
||||
char buf[PATH_MAX_LENGTH];
|
||||
char autoconf_file[PATH_MAX_LENGTH];
|
||||
|
@ -5787,12 +5787,12 @@ static int action_ok_add_entry_to_playlist(const char *path,
|
||||
if(!label)
|
||||
return 0;
|
||||
|
||||
/*
|
||||
*
|
||||
/*
|
||||
*
|
||||
* path = menu entry select. use this to identify the menu item to add the content to
|
||||
* entry->path = The file path of the currently selected content
|
||||
* [INFO] [playlist] = Add to Favorites
|
||||
* [INFO] [content_path] = C:\roms\Arcade - Mame 2003 Plus\aburner2.zip
|
||||
* [INFO] [content_path] = C:\roms\Arcade - Mame 2003 Plus\aburner2.zip
|
||||
*/
|
||||
/* Read current playlist parameters */
|
||||
playlist_get_index(playlist_curr, menu->rpl_entry_selection_ptr, &entry);
|
||||
@ -5823,7 +5823,7 @@ static int action_ok_add_entry_to_playlist(const char *path,
|
||||
* [2]: core_path
|
||||
* [3]: core_name
|
||||
* [4]: crc32
|
||||
* [5]: db_name
|
||||
* [5]: db_name
|
||||
* [6]: playlist*/
|
||||
|
||||
/* > content_path */
|
||||
@ -5901,7 +5901,7 @@ static int action_ok_add_entry_to_playlist(const char *path,
|
||||
|
||||
/* db_name */
|
||||
string_list_append(str_list, label, attr);
|
||||
|
||||
|
||||
|
||||
/* Trigger 'ADD_TO_FAVORITES' event */
|
||||
if (!command_event(CMD_EVENT_ADD_TO_PLAYLIST, (void*)str_list))
|
||||
@ -5925,7 +5925,7 @@ static void action_input_add_entry_to_new_playlist(void *userdata, const char *l
|
||||
|
||||
if(!line)
|
||||
return;
|
||||
|
||||
|
||||
/* Create path for new file */
|
||||
path_length = fill_pathname_join_special(path, settings->paths.directory_playlist, line, sizeof(path));
|
||||
strlcat(path, ".lpl", sizeof(path) - path_length);
|
||||
@ -6360,7 +6360,9 @@ STATIC_DEFAULT_ACTION_OK_FUNC(action_ok_push_eject_disc, ACTION_OK_DL_EJECT_DISC
|
||||
STATIC_DEFAULT_ACTION_OK_FUNC(action_ok_push_load_disc_list, ACTION_OK_DL_LOAD_DISC_LIST)
|
||||
STATIC_DEFAULT_ACTION_OK_FUNC(action_ok_open_archive, ACTION_OK_DL_OPEN_ARCHIVE)
|
||||
STATIC_DEFAULT_ACTION_OK_FUNC(action_ok_rgui_menu_theme_preset, ACTION_OK_DL_RGUI_MENU_THEME_PRESET)
|
||||
#ifdef HAVE_NETWORKING
|
||||
STATIC_DEFAULT_ACTION_OK_FUNC(action_ok_pl_thumbnails_updater_list, ACTION_OK_DL_PL_THUMBNAILS_UPDATER_LIST)
|
||||
#endif
|
||||
STATIC_DEFAULT_ACTION_OK_FUNC(action_ok_push_manual_content_scan_list, ACTION_OK_DL_MANUAL_CONTENT_SCAN_LIST)
|
||||
STATIC_DEFAULT_ACTION_OK_FUNC(action_ok_manual_content_scan_dat_file, ACTION_OK_DL_MANUAL_CONTENT_SCAN_DAT_FILE)
|
||||
STATIC_DEFAULT_ACTION_OK_FUNC(action_ok_push_core_manager_list, ACTION_OK_DL_CORE_MANAGER_LIST)
|
||||
|
@ -106,7 +106,7 @@
|
||||
#include "../lakka.h"
|
||||
#ifdef HAVE_LAKKA_SWITCH
|
||||
#include "../lakka-switch.h"
|
||||
#endif
|
||||
#endif
|
||||
#include "../retroarch.h"
|
||||
#include "../gfx/video_display_server.h"
|
||||
#ifdef HAVE_CHEATS
|
||||
@ -797,6 +797,7 @@ static void setting_get_string_representation_uint(rarch_setting_t *setting,
|
||||
*setting->value.target.unsigned_integer);
|
||||
}
|
||||
|
||||
#if defined(HAVE_NETWORKING)
|
||||
static void setting_get_string_representation_color_rgb(rarch_setting_t *setting,
|
||||
char *s, size_t len)
|
||||
{
|
||||
@ -804,6 +805,7 @@ static void setting_get_string_representation_color_rgb(rarch_setting_t *setting
|
||||
snprintf(s, len, "#%06X",
|
||||
*setting->value.target.unsigned_integer & 0xFFFFFF);
|
||||
}
|
||||
#endif
|
||||
|
||||
static void setting_get_string_representation_size_in_mb(
|
||||
rarch_setting_t *setting, char *s, size_t len)
|
||||
@ -8301,7 +8303,7 @@ static void general_write_handler(rarch_setting_t *setting)
|
||||
*setting->value.target.fraction);
|
||||
break;
|
||||
case MENU_ENUM_LABEL_VIDEO_BLACK_FRAME_INSERTION:
|
||||
/* If enabling BFI, auto disable other sync settings
|
||||
/* If enabling BFI, auto disable other sync settings
|
||||
that do not work together with BFI */
|
||||
if (*setting->value.target.unsigned_integer > 0)
|
||||
{
|
||||
@ -8357,7 +8359,7 @@ static void general_write_handler(rarch_setting_t *setting)
|
||||
#endif
|
||||
break;
|
||||
case MENU_ENUM_LABEL_VIDEO_SHADER_SUBFRAMES:
|
||||
/* If enabling BFI, auto disable other sync settings
|
||||
/* If enabling BFI, auto disable other sync settings
|
||||
that do not work together with subframes */
|
||||
if (*setting->value.target.unsigned_integer > 1)
|
||||
{
|
||||
@ -9207,7 +9209,7 @@ static void switch_oc_enable_toggle_change_handler(rarch_setting_t *setting)
|
||||
if (*setting->value.target.boolean == true) {
|
||||
fprintf(f, "1\n");
|
||||
} else {
|
||||
fprintf(f, "0\n");
|
||||
fprintf(f, "0\n");
|
||||
}
|
||||
fclose(f);
|
||||
}
|
||||
@ -9219,9 +9221,9 @@ static void switch_cec_enable_toggle_change_handler(rarch_setting_t *setting)
|
||||
fprintf(f, "\n");
|
||||
fclose(f);
|
||||
} else {
|
||||
filestream_delete(SWITCH_CEC_TOGGLE_PATH);
|
||||
filestream_delete(SWITCH_CEC_TOGGLE_PATH);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
static void bluetooth_ertm_disable_toggle_change_handler(rarch_setting_t *setting)
|
||||
@ -9235,7 +9237,7 @@ static void bluetooth_ertm_disable_toggle_change_handler(rarch_setting_t *settin
|
||||
fprintf(f, "0\n");
|
||||
fclose(f);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
@ -20120,7 +20122,7 @@ static bool setting_append_list(
|
||||
&setting_get_string_representation_uint_ai_service_lang;
|
||||
(*list)[list_info->index - 1].action_ok = &setting_action_ok_uint;
|
||||
menu_settings_list_current_add_range(list, list_info, TRANSLATION_LANG_DONT_CARE, (TRANSLATION_LANG_LAST-1), 1, true, true);
|
||||
|
||||
|
||||
CONFIG_UINT(
|
||||
list, list_info,
|
||||
&settings->uints.ai_service_poll_delay,
|
||||
@ -20134,7 +20136,7 @@ static bool setting_append_list(
|
||||
general_read_handler);
|
||||
(*list)[list_info->index - 1].action_ok = &setting_action_ok_uint;
|
||||
menu_settings_list_current_add_range(list, list_info, 0, MAXIMUM_AI_SERVICE_POLL_DELAY, 50, true, true);
|
||||
|
||||
|
||||
CONFIG_UINT(
|
||||
list, list_info,
|
||||
&settings->uints.ai_service_text_position,
|
||||
@ -20150,7 +20152,7 @@ static bool setting_append_list(
|
||||
&setting_get_string_representation_uint_ai_service_text_position;
|
||||
(*list)[list_info->index - 1].action_ok = &setting_action_ok_uint;
|
||||
menu_settings_list_current_add_range(list, list_info, 0, 2, 1, true, true);
|
||||
|
||||
|
||||
CONFIG_UINT(
|
||||
list, list_info,
|
||||
&settings->uints.ai_service_text_padding,
|
||||
@ -22889,7 +22891,7 @@ static bool setting_append_list(
|
||||
general_read_handler,
|
||||
SD_FLAG_NONE);
|
||||
(*list)[list_info->index - 1].change_handler = switch_oc_enable_toggle_change_handler;
|
||||
|
||||
|
||||
CONFIG_BOOL(
|
||||
list, list_info,
|
||||
&settings->bools.switch_cec,
|
||||
@ -22905,7 +22907,7 @@ static bool setting_append_list(
|
||||
general_read_handler,
|
||||
SD_FLAG_NONE);
|
||||
(*list)[list_info->index - 1].change_handler = switch_cec_enable_toggle_change_handler;
|
||||
|
||||
|
||||
CONFIG_BOOL(
|
||||
list, list_info,
|
||||
&settings->bools.bluetooth_ertm_disable,
|
||||
|
@ -4457,7 +4457,7 @@ bool command_event(enum event_command cmd, void *data)
|
||||
{
|
||||
playlist_config_t playlist_config;
|
||||
playlist_t * playlist;
|
||||
|
||||
|
||||
struct playlist_entry entry = {0};
|
||||
bool playlist_sort_alphabetical = settings->bools.playlist_sort_alphabetical;
|
||||
|
||||
@ -4467,7 +4467,7 @@ bool command_event(enum event_command cmd, void *data)
|
||||
entry.core_name = str_list->elems[3].data; /* core_name */
|
||||
entry.crc32 = str_list->elems[4].data; /* crc32 */
|
||||
entry.db_name = str_list->elems[5].data; /* db_name */
|
||||
|
||||
|
||||
/* load the playlist */
|
||||
playlist_config.capacity = COLLECTION_SIZE;
|
||||
playlist_config.old_format = settings->bools.playlist_use_old_format;
|
||||
@ -8196,7 +8196,6 @@ bool retroarch_main_quit(void)
|
||||
#ifdef HAVE_ACCESSIBILITY
|
||||
access_state_t *access_st = access_state_get_ptr();
|
||||
#endif
|
||||
struct retro_system_av_info *av_info = &video_st->av_info;
|
||||
|
||||
/* Restore video driver before saving */
|
||||
video_driver_restore_cached(settings);
|
||||
|
Loading…
x
Reference in New Issue
Block a user