mirror of
https://github.com/libretro/RetroArch
synced 2025-04-09 21:45:45 +00:00
Silence some warnings
This commit is contained in:
parent
097cb1bd5b
commit
542162c17b
@ -2664,7 +2664,7 @@ int generic_action_ok_help(const char *path,
|
|||||||
static int action_ok_bluetooth(const char *path, const char *label,
|
static int action_ok_bluetooth(const char *path, const char *label,
|
||||||
unsigned type, size_t idx, size_t entry_idx)
|
unsigned type, size_t idx, size_t entry_idx)
|
||||||
{
|
{
|
||||||
driver_bluetooth_connect_device(idx);
|
driver_bluetooth_connect_device((unsigned)idx);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@ -6016,7 +6016,7 @@ static int action_ok_push_dropdown_item_video_shader_param_generic(const char *p
|
|||||||
{
|
{
|
||||||
#if defined(HAVE_CG) || defined(HAVE_GLSL) || defined(HAVE_SLANG) || defined(HAVE_HLSL)
|
#if defined(HAVE_CG) || defined(HAVE_GLSL) || defined(HAVE_SLANG) || defined(HAVE_HLSL)
|
||||||
video_shader_ctx_t shader_info;
|
video_shader_ctx_t shader_info;
|
||||||
unsigned offset = setting_offset;
|
unsigned offset = (unsigned)setting_offset;
|
||||||
float val = atof(path);
|
float val = atof(path);
|
||||||
struct video_shader *shader = menu_shader_get();
|
struct video_shader *shader = menu_shader_get();
|
||||||
struct video_shader_parameter *param_menu = NULL;
|
struct video_shader_parameter *param_menu = NULL;
|
||||||
|
@ -2242,7 +2242,7 @@ static void materialui_set_node_playlist_icon(
|
|||||||
|
|
||||||
if (string_is_equal(playlist_file, icon_playlist_file))
|
if (string_is_equal(playlist_file, icon_playlist_file))
|
||||||
{
|
{
|
||||||
node->icon_texture_index = i;
|
node->icon_texture_index = (unsigned)i;
|
||||||
node->icon_type = MUI_ICON_TYPE_PLAYLIST;
|
node->icon_type = MUI_ICON_TYPE_PLAYLIST;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -3628,7 +3628,7 @@ static void materialui_render(void *data,
|
|||||||
(pointer_y < (entry_y + node->entry_height)))
|
(pointer_y < (entry_y + node->entry_height)))
|
||||||
{
|
{
|
||||||
/* Pointer selection is always updated */
|
/* Pointer selection is always updated */
|
||||||
menu_input_set_pointer_selection(i);
|
menu_input_set_pointer_selection((unsigned)i);
|
||||||
|
|
||||||
/* If pointer is pressed and stationary... */
|
/* If pointer is pressed and stationary... */
|
||||||
if (mui->pointer.pressed && !mui->pointer.dragged)
|
if (mui->pointer.pressed && !mui->pointer.dragged)
|
||||||
@ -3638,7 +3638,7 @@ static void materialui_render(void *data,
|
|||||||
if (mui->touch_feedback_update_selection)
|
if (mui->touch_feedback_update_selection)
|
||||||
{
|
{
|
||||||
/* ...apply touch feedback to current entry */
|
/* ...apply touch feedback to current entry */
|
||||||
mui->touch_feedback_selection = i;
|
mui->touch_feedback_selection = (unsigned)i;
|
||||||
|
|
||||||
/* ...and if pointer has been held for at least
|
/* ...and if pointer has been held for at least
|
||||||
* MENU_INPUT_PRESS_TIME_SHORT ms, automatically
|
* MENU_INPUT_PRESS_TIME_SHORT ms, automatically
|
||||||
|
@ -1923,7 +1923,7 @@ static void ozone_render(void *data,
|
|||||||
(ozone->pointer.y < entry_y + node->height))
|
(ozone->pointer.y < entry_y + node->height))
|
||||||
{
|
{
|
||||||
/* Pointer selection is always updated */
|
/* Pointer selection is always updated */
|
||||||
menu_input_set_pointer_selection(i);
|
menu_input_set_pointer_selection((unsigned)i);
|
||||||
|
|
||||||
/* If pointer is a mouse, then automatically
|
/* If pointer is a mouse, then automatically
|
||||||
* select entry under cursor */
|
* select entry under cursor */
|
||||||
|
@ -3894,7 +3894,7 @@ static void xmb_render(void *data,
|
|||||||
|
|
||||||
if ((pointer_y > y1) && (pointer_y < y2))
|
if ((pointer_y > y1) && (pointer_y < y2))
|
||||||
{
|
{
|
||||||
menu_input_set_pointer_selection(i);
|
menu_input_set_pointer_selection((unsigned)i);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -10048,7 +10048,7 @@ static bool command_read_ram(const char *arg)
|
|||||||
|
|
||||||
static bool command_write_ram(const char *arg)
|
static bool command_write_ram(const char *arg)
|
||||||
{
|
{
|
||||||
unsigned int addr = strtoul(arg, (char**)&arg, 16);
|
unsigned int addr = (unsigned int)strtoul(arg, (char**)&arg, 16);
|
||||||
uint8_t *data = (uint8_t *)rcheevos_patch_address(addr);
|
uint8_t *data = (uint8_t *)rcheevos_patch_address(addr);
|
||||||
|
|
||||||
if (!data)
|
if (!data)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user