mirror of
https://github.com/libretro/RetroArch
synced 2025-03-01 07:13:35 +00:00
Silence warnings
This commit is contained in:
parent
e1613bba6d
commit
b7a85d392f
@ -909,6 +909,8 @@ bool video_shader_is_supported(enum rarch_shader_type type)
|
|||||||
gfx_ctx_flags_t flags;
|
gfx_ctx_flags_t flags;
|
||||||
enum display_flags testflag;
|
enum display_flags testflag;
|
||||||
|
|
||||||
|
flags.flags = 0;
|
||||||
|
|
||||||
switch (type)
|
switch (type)
|
||||||
{
|
{
|
||||||
case RARCH_SHADER_SLANG:
|
case RARCH_SHADER_SLANG:
|
||||||
|
@ -36,14 +36,8 @@ int action_cancel_pop_default(const char *path,
|
|||||||
{
|
{
|
||||||
size_t new_selection_ptr;
|
size_t new_selection_ptr;
|
||||||
const char *menu_label = NULL;
|
const char *menu_label = NULL;
|
||||||
settings_t *settings = config_get_ptr();
|
|
||||||
|
|
||||||
(void)path;
|
|
||||||
(void)label;
|
|
||||||
(void)type;
|
|
||||||
(void)idx;
|
|
||||||
|
|
||||||
#ifdef HAVE_AUDIOMIXER
|
#ifdef HAVE_AUDIOMIXER
|
||||||
|
settings_t *settings = config_get_ptr();
|
||||||
if (settings->bools.audio_enable_menu && settings->bools.audio_enable_menu_cancel)
|
if (settings->bools.audio_enable_menu && settings->bools.audio_enable_menu_cancel)
|
||||||
audio_driver_mixer_play_menu_sound(AUDIO_MIXER_SYSTEM_SLOT_CANCEL);
|
audio_driver_mixer_play_menu_sound(AUDIO_MIXER_SYSTEM_SLOT_CANCEL);
|
||||||
#endif
|
#endif
|
||||||
|
@ -37,7 +37,9 @@ static int action_info_default(unsigned type, const char *label)
|
|||||||
menu_displaylist_info_t info;
|
menu_displaylist_info_t info;
|
||||||
file_list_t *menu_stack = menu_entries_get_menu_stack_ptr(0);
|
file_list_t *menu_stack = menu_entries_get_menu_stack_ptr(0);
|
||||||
size_t selection = menu_navigation_get_selection();
|
size_t selection = menu_navigation_get_selection();
|
||||||
|
#ifdef HAVE_AUDIOMIXER
|
||||||
settings_t *settings = config_get_ptr();
|
settings_t *settings = config_get_ptr();
|
||||||
|
#endif
|
||||||
|
|
||||||
menu_displaylist_info_init(&info);
|
menu_displaylist_info_init(&info);
|
||||||
|
|
||||||
|
@ -1314,9 +1314,9 @@ static int set_path_generic(const char *label, const char *action_path)
|
|||||||
|
|
||||||
static int generic_action_ok_command(enum event_command cmd)
|
static int generic_action_ok_command(enum event_command cmd)
|
||||||
{
|
{
|
||||||
|
#ifdef HAVE_AUDIOMIXER
|
||||||
settings_t *settings = config_get_ptr();
|
settings_t *settings = config_get_ptr();
|
||||||
|
|
||||||
#ifdef HAVE_AUDIOMIXER
|
|
||||||
if (settings->bools.audio_enable_menu && settings->bools.audio_enable_menu_ok)
|
if (settings->bools.audio_enable_menu && settings->bools.audio_enable_menu_ok)
|
||||||
audio_driver_mixer_play_menu_sound(AUDIO_MIXER_SYSTEM_SLOT_OK);
|
audio_driver_mixer_play_menu_sound(AUDIO_MIXER_SYSTEM_SLOT_OK);
|
||||||
#endif
|
#endif
|
||||||
@ -1392,9 +1392,9 @@ static int generic_action_ok(const char *path,
|
|||||||
const char *menu_label = NULL;
|
const char *menu_label = NULL;
|
||||||
const char *flush_char = NULL;
|
const char *flush_char = NULL;
|
||||||
menu_handle_t *menu = NULL;
|
menu_handle_t *menu = NULL;
|
||||||
|
#ifdef HAVE_AUDIOMIXER
|
||||||
settings_t *settings = config_get_ptr();
|
settings_t *settings = config_get_ptr();
|
||||||
|
|
||||||
#ifdef HAVE_AUDIOMIXER
|
|
||||||
if (settings->bools.audio_enable_menu && settings->bools.audio_enable_menu_ok)
|
if (settings->bools.audio_enable_menu && settings->bools.audio_enable_menu_ok)
|
||||||
audio_driver_mixer_play_menu_sound(AUDIO_MIXER_SYSTEM_SLOT_OK);
|
audio_driver_mixer_play_menu_sound(AUDIO_MIXER_SYSTEM_SLOT_OK);
|
||||||
#endif
|
#endif
|
||||||
|
@ -6562,7 +6562,9 @@ bool menu_displaylist_ctl(enum menu_displaylist_ctl_state type,
|
|||||||
}
|
}
|
||||||
case DISPLAYLIST_AUDIO_MIXER_SETTINGS_LIST:
|
case DISPLAYLIST_AUDIO_MIXER_SETTINGS_LIST:
|
||||||
{
|
{
|
||||||
|
#ifdef HAVE_AUDIOMIXER
|
||||||
unsigned i;
|
unsigned i;
|
||||||
|
#endif
|
||||||
menu_entries_ctl(MENU_ENTRIES_CTL_CLEAR, info->list);
|
menu_entries_ctl(MENU_ENTRIES_CTL_CLEAR, info->list);
|
||||||
|
|
||||||
#ifdef HAVE_AUDIOMIXER
|
#ifdef HAVE_AUDIOMIXER
|
||||||
|
@ -4166,10 +4166,10 @@ static int setting_uint_action_left_custom_viewport_height(
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if !defined(RARCH_CONSOLE)
|
||||||
static int setting_string_action_left_audio_device(
|
static int setting_string_action_left_audio_device(
|
||||||
rarch_setting_t *setting, bool wraparound)
|
rarch_setting_t *setting, bool wraparound)
|
||||||
{
|
{
|
||||||
#if !defined(RARCH_CONSOLE)
|
|
||||||
int audio_device_index;
|
int audio_device_index;
|
||||||
struct string_list *ptr = NULL;
|
struct string_list *ptr = NULL;
|
||||||
|
|
||||||
@ -4189,10 +4189,10 @@ static int setting_string_action_left_audio_device(
|
|||||||
audio_device_index = (int)(ptr->size - 1);
|
audio_device_index = (int)(ptr->size - 1);
|
||||||
|
|
||||||
strlcpy(setting->value.target.string, ptr->elems[audio_device_index].data, setting->size);
|
strlcpy(setting->value.target.string, ptr->elems[audio_device_index].data, setting->size);
|
||||||
#endif
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static int setting_string_action_left_driver(rarch_setting_t *setting,
|
static int setting_string_action_left_driver(rarch_setting_t *setting,
|
||||||
bool wraparound)
|
bool wraparound)
|
||||||
|
@ -1357,7 +1357,9 @@ typedef struct input_remote_state
|
|||||||
uint64_t buttons[MAX_USERS];
|
uint64_t buttons[MAX_USERS];
|
||||||
} input_remote_state_t;
|
} input_remote_state_t;
|
||||||
|
|
||||||
|
#if defined(HAVE_NETWORKING) && defined(HAVE_NETWORKGAMEPAD)
|
||||||
static input_remote_state_t remote_st_ptr;
|
static input_remote_state_t remote_st_ptr;
|
||||||
|
#endif
|
||||||
|
|
||||||
/* INPUT OVERLAY GLOBAL VARIABLES */
|
/* INPUT OVERLAY GLOBAL VARIABLES */
|
||||||
#ifdef HAVE_OVERLAY
|
#ifdef HAVE_OVERLAY
|
||||||
@ -14804,10 +14806,6 @@ bool video_driver_texture_unload(uintptr_t *id)
|
|||||||
|
|
||||||
void video_driver_build_info(video_frame_info_t *video_info)
|
void video_driver_build_info(video_frame_info_t *video_info)
|
||||||
{
|
{
|
||||||
bool is_perfcnt_enable = false;
|
|
||||||
bool is_paused = false;
|
|
||||||
bool is_idle = false;
|
|
||||||
bool is_slowmotion = false;
|
|
||||||
video_viewport_t *custom_vp = NULL;
|
video_viewport_t *custom_vp = NULL;
|
||||||
struct retro_hw_render_callback *hwr =
|
struct retro_hw_render_callback *hwr =
|
||||||
video_driver_get_hw_context_internal();
|
video_driver_get_hw_context_internal();
|
||||||
@ -18153,7 +18151,9 @@ bool retroarch_main_init(int argc, char *argv[])
|
|||||||
{
|
{
|
||||||
settings_t *settings = configuration_settings;
|
settings_t *settings = configuration_settings;
|
||||||
enum rarch_content_type cont_type = path_is_media_type(fullpath);
|
enum rarch_content_type cont_type = path_is_media_type(fullpath);
|
||||||
|
#ifdef HAVE_IMAGEVIEWER
|
||||||
bool builtin_imageviewer = settings ? settings->bools.multimedia_builtin_imageviewer_enable : false;
|
bool builtin_imageviewer = settings ? settings->bools.multimedia_builtin_imageviewer_enable : false;
|
||||||
|
#endif
|
||||||
bool builtin_mediaplayer = settings ? settings->bools.multimedia_builtin_mediaplayer_enable : false;
|
bool builtin_mediaplayer = settings ? settings->bools.multimedia_builtin_mediaplayer_enable : false;
|
||||||
|
|
||||||
switch (cont_type)
|
switch (cont_type)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user