Fix for getting rid of warnings when compiling without libretrodb

This commit is contained in:
twinaphex 2019-07-11 10:27:50 +02:00
parent 663c82f97a
commit cd2b835f8c
2 changed files with 7 additions and 2 deletions

View File

@ -5287,7 +5287,9 @@ bool menu_displaylist_ctl(enum menu_displaylist_ctl_state type,
case DISPLAYLIST_DATABASE_ENTRY:
menu_entries_ctl(MENU_ENTRIES_CTL_CLEAR, info->list);
{
#ifdef HAVE_LIBRETRODB
bool parse_database = false;
#endif
struct string_list *str_list = NULL;
if (!string_is_empty(info->label))
@ -5311,7 +5313,9 @@ bool menu_displaylist_ctl(enum menu_displaylist_ctl_state type,
{
info->path_b = strdup(str_list->elems[1].data);
info->label = strdup(str_list->elems[0].data);
#ifdef HAVE_LIBRETRODB
parse_database = true;
#endif
}
}
@ -7775,6 +7779,8 @@ bool menu_displaylist_ctl(enum menu_displaylist_ctl_state type,
union string_list_elem_attr attr;
struct string_list *str_list = string_list_new();
(void)attr;
attr.i = 0;
new_exts[0] = '\0';

View File

@ -20390,8 +20390,7 @@ rarch_system_info_t *runloop_get_system_info(void)
struct retro_system_info *runloop_get_libretro_system_info(void)
{
struct retro_system_info *system = &runloop_system.info;
return system;
return &runloop_system.info;
}
char *get_retroarch_launch_arguments(void)