mirror of
https://github.com/libretro/RetroArch
synced 2025-04-02 07:20:34 +00:00
Prevent some warnings
This commit is contained in:
parent
c872edcc2b
commit
8c2070947e
@ -504,6 +504,7 @@ static bool hw_render_context_is_vulkan(enum retro_hw_context_type type)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(HAVE_OPENGL)
|
||||||
static bool hw_render_context_is_gl(enum retro_hw_context_type type)
|
static bool hw_render_context_is_gl(enum retro_hw_context_type type)
|
||||||
{
|
{
|
||||||
switch (type)
|
switch (type)
|
||||||
@ -520,6 +521,7 @@ static bool hw_render_context_is_gl(enum retro_hw_context_type type)
|
|||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
bool *video_driver_get_threaded(void)
|
bool *video_driver_get_threaded(void)
|
||||||
{
|
{
|
||||||
|
@ -2585,7 +2585,9 @@ static void cb_generic_download(void *task_data,
|
|||||||
void *user_data, const char *err)
|
void *user_data, const char *err)
|
||||||
{
|
{
|
||||||
char output_path[PATH_MAX_LENGTH];
|
char output_path[PATH_MAX_LENGTH];
|
||||||
|
#if defined(HAVE_COMPRESSION) && defined(HAVE_ZLIB)
|
||||||
bool extract = true;
|
bool extract = true;
|
||||||
|
#endif
|
||||||
const char *dir_path = NULL;
|
const char *dir_path = NULL;
|
||||||
menu_file_transfer_t *transf = (menu_file_transfer_t*)user_data;
|
menu_file_transfer_t *transf = (menu_file_transfer_t*)user_data;
|
||||||
settings_t *settings = config_get_ptr();
|
settings_t *settings = config_get_ptr();
|
||||||
@ -2609,7 +2611,9 @@ static void cb_generic_download(void *task_data,
|
|||||||
break;
|
break;
|
||||||
case MENU_ENUM_LABEL_CB_CORE_CONTENT_DOWNLOAD:
|
case MENU_ENUM_LABEL_CB_CORE_CONTENT_DOWNLOAD:
|
||||||
dir_path = settings->paths.directory_core_assets;
|
dir_path = settings->paths.directory_core_assets;
|
||||||
|
#if defined(HAVE_COMPRESSION) && defined(HAVE_ZLIB)
|
||||||
extract = settings->bools.network_buildbot_auto_extract_archive;
|
extract = settings->bools.network_buildbot_auto_extract_archive;
|
||||||
|
#endif
|
||||||
break;
|
break;
|
||||||
case MENU_ENUM_LABEL_CB_UPDATE_CORE_INFO_FILES:
|
case MENU_ENUM_LABEL_CB_UPDATE_CORE_INFO_FILES:
|
||||||
dir_path = settings->paths.path_libretro_info;
|
dir_path = settings->paths.path_libretro_info;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user