mirror of
https://github.com/libretro/RetroArch
synced 2025-03-03 04:14:00 +00:00
Silence some warnings
This commit is contained in:
parent
1d8930625a
commit
13d662d76b
@ -6214,7 +6214,7 @@ int action_cb_push_dropdown_item_resolution(const char *path,
|
||||
float num = refreshrate / 60.0f;
|
||||
unsigned refresh_mod = num > 0 ? (unsigned)(floorf(num + 0.5f)) : (unsigned)(ceilf(num - 0.5f));
|
||||
#else
|
||||
unsigned refresh_mod = lroundf(refreshrate / 60.0f);
|
||||
unsigned refresh_mod = lroundf((float)(refreshrate / 60.0f));
|
||||
#endif
|
||||
float refresh_exact = refreshrate;
|
||||
|
||||
|
@ -7748,7 +7748,7 @@ static void materialui_init_font(
|
||||
if (wideglyph_str)
|
||||
{
|
||||
int wideglyph_width =
|
||||
font_driver_get_message_width(font_data->font, wideglyph_str, strlen(wideglyph_str), 1);
|
||||
font_driver_get_message_width(font_data->font, wideglyph_str, (unsigned)strlen(wideglyph_str), 1);
|
||||
|
||||
if (wideglyph_width > 0 && char_width > 0)
|
||||
font_data->wideglyph_width = wideglyph_width * 100 / char_width;
|
||||
|
@ -7289,7 +7289,7 @@ static bool ozone_init_font(
|
||||
if (wideglyph_str)
|
||||
{
|
||||
int wideglyph_width =
|
||||
font_driver_get_message_width(font_data->font, wideglyph_str, strlen(wideglyph_str), 1.0f);
|
||||
font_driver_get_message_width(font_data->font, wideglyph_str, (unsigned)strlen(wideglyph_str), 1.0f);
|
||||
|
||||
if (wideglyph_width > 0 && glyph_width > 0)
|
||||
font_data->wideglyph_width = wideglyph_width * 100 / glyph_width;
|
||||
|
@ -6424,7 +6424,7 @@ static void xmb_context_reset_internal(xmb_handle_t *xmb,
|
||||
int char_width =
|
||||
font_driver_get_message_width(xmb->font, "a", 1, 1);
|
||||
int wideglyph_width =
|
||||
font_driver_get_message_width(xmb->font, wideglyph_str, strlen(wideglyph_str), 1);
|
||||
font_driver_get_message_width(xmb->font, wideglyph_str, (unsigned)strlen(wideglyph_str), 1);
|
||||
|
||||
if (wideglyph_width > 0 && char_width > 0)
|
||||
xmb->wideglyph_width = wideglyph_width * 100 / char_width;
|
||||
|
@ -417,7 +417,7 @@ explore_state_t *menu_explore_build_list(const char *directory_playlist,
|
||||
playlist_t *playlist = NULL;
|
||||
const char *fext = NULL;
|
||||
const char *fname = NULL;
|
||||
uint32_t fhash;
|
||||
uint32_t fhash = 0;
|
||||
|
||||
playlist_config.path[0] = '\0';
|
||||
playlist_config.base_content_directory[0] = '\0';
|
||||
@ -433,7 +433,7 @@ explore_state_t *menu_explore_build_list(const char *directory_playlist,
|
||||
break;
|
||||
}
|
||||
|
||||
fname = retro_vfs_dirent_get_name_impl(dir);
|
||||
fname = retro_vfs_dirent_get_name_impl(dir);
|
||||
if (fname)
|
||||
fext = strrchr(fname, '.');
|
||||
|
||||
@ -851,7 +851,7 @@ unsigned menu_displaylist_explore(file_list_t *list,
|
||||
cbs->action_get_title = explore_action_get_title_default;
|
||||
}
|
||||
|
||||
return list->size;
|
||||
return (unsigned)list->size;
|
||||
}
|
||||
|
||||
if (!explore_state->menu_initialised)
|
||||
@ -1194,7 +1194,7 @@ SKIP_ENTRY:;
|
||||
}
|
||||
}
|
||||
|
||||
return list->size;
|
||||
return (unsigned)list->size;
|
||||
}
|
||||
|
||||
uintptr_t menu_explore_get_entry_icon(unsigned type)
|
||||
|
@ -3263,7 +3263,7 @@ bool run_translation_service(settings_t *settings, bool paused)
|
||||
}
|
||||
|
||||
bmp64_buffer = base64((void *)bmp_buffer,
|
||||
sizeof(uint8_t) * buffer_bytes,
|
||||
(int)(sizeof(uint8_t) * buffer_bytes),
|
||||
&bmp64_length);
|
||||
|
||||
if (!bmp64_buffer)
|
||||
@ -15704,9 +15704,9 @@ int runloop_iterate(void)
|
||||
/* Calculate average frame time to balance spikes */
|
||||
for (i = 1; i < frame_time_frames + 1; i++)
|
||||
{
|
||||
unsigned frame_time_i = 0;
|
||||
retro_time_t frame_time_i = 0;
|
||||
|
||||
if (i > frame_time_index)
|
||||
if (i > (unsigned)frame_time_index)
|
||||
continue;
|
||||
|
||||
frame_time_i = video_st->frame_time_samples[frame_time_index - i];
|
||||
|
Loading…
x
Reference in New Issue
Block a user