Silence warnings and fix Android build

This commit is contained in:
libretroadmin 2023-05-10 21:59:50 +02:00
parent 91ea92e50b
commit 9f5a73ef07
3 changed files with 2 additions and 7 deletions

View File

@ -527,7 +527,7 @@ static bool video_shader_parse_pass(config_file_t *conf,
char scale_type[64];
char scale_type_x[64];
char scale_type_y[64];
char formatted_num[8];
char formatted_num[12];
char tmp_path[PATH_MAX_LENGTH];
struct gfx_fbo_scale *scale = NULL;
bool tmp_bool = false;

View File

@ -4431,7 +4431,6 @@ static int action_ok_file_load_imageviewer(const char *path,
char fullpath[PATH_MAX_LENGTH];
const char *menu_path = NULL;
struct menu_state *menu_st = menu_state_get_ptr();
menu_handle_t *menu = menu_st->driver_data;
menu_list_t *menu_list = menu_st->entries.list;
file_list_t *menu_stack = MENU_LIST_GET(menu_list, 0);
@ -6852,6 +6851,7 @@ static int action_ok_push_dropdown_item_input_select_physical_keyboard(const cha
rarch_setting_t *setting = NULL;
settings_t *settings = config_get_ptr();
const char *menu_path = NULL;
struct menu_state *menu_st = menu_state_get_ptr();
menu_entries_get_last_stack(&menu_path, NULL, NULL, NULL, NULL);
enum_idx = (enum msg_hash_enums)atoi(menu_path);
setting = menu_setting_find_enum(enum_idx);

View File

@ -4486,7 +4486,6 @@ static void ozone_change_tab(
{
struct menu_state *menu_st = menu_state_get_ptr();
menu_list_t *menu_list = menu_st->entries.list;
menu_input_t *menu_input = &menu_st->input_state;
file_list_t *menu_stack = MENU_LIST_GET(menu_list, 0);
file_list_t *selection_buf = MENU_LIST_GET_SELECTION(menu_list, 0);
size_t stack_size = menu_stack->size;
@ -8481,8 +8480,6 @@ static enum menu_action ozone_parse_menu_entry_action(
case MENU_ACTION_SCROLL_HOME:
if (ozone->flags & OZONE_FLAG_CURSOR_IN_SIDEBAR)
{
struct menu_state *menu_st = menu_state_get_ptr();
/* If cursor is active, ensure we target
* an on screen category */
size_t tab_selection = (ozone->flags & OZONE_FLAG_CURSOR_MODE)
@ -8510,8 +8507,6 @@ static enum menu_action ozone_parse_menu_entry_action(
case MENU_ACTION_SCROLL_END:
if (ozone->flags & OZONE_FLAG_CURSOR_IN_SIDEBAR)
{
struct menu_state *menu_st = menu_state_get_ptr();
/* If cursor is active, ensure we target
* an on screen category */
size_t tab_selection = (ozone->flags & OZONE_FLAG_CURSOR_MODE)