Silence implicit conversion warnings

This commit is contained in:
twinaphex 2021-01-16 20:03:04 +01:00
parent 9f44a4fcd9
commit 1b071f16f5
7 changed files with 8 additions and 6 deletions

View File

@ -111,8 +111,9 @@ void cdfs_seek_sector(cdfs_file_t* file, unsigned int sector)
static int cdfs_find_file(cdfs_file_t* file, const char* path) static int cdfs_find_file(cdfs_file_t* file, const char* path)
{ {
size_t path_length;
int sector;
uint8_t buffer[2048], *tmp; uint8_t buffer[2048], *tmp;
int sector, path_length;
const char* slash = strrchr(path, '\\'); const char* slash = strrchr(path, '\\');
if (slash) if (slash)

View File

@ -144,7 +144,6 @@ static INLINE uint32_t dword_be(const uint8_t *buf)
#if defined(DEBUG) || defined(RPNG_TEST) #if defined(DEBUG) || defined(RPNG_TEST)
static bool png_process_ihdr(struct png_ihdr *ihdr) static bool png_process_ihdr(struct png_ihdr *ihdr)
{ {
unsigned i;
uint8_t ihdr_depth = ihdr->depth; uint8_t ihdr_depth = ihdr->depth;
switch (ihdr->color_type) switch (ihdr->color_type)

View File

@ -5997,7 +5997,7 @@ static int action_ok_push_dropdown_item_video_shader_num_pass(const char *path,
if (!shader) if (!shader)
return menu_cbs_exit(); return menu_cbs_exit();
shader->passes = idx; shader->passes = (unsigned)idx;
video_shader_resolve_parameters(shader); video_shader_resolve_parameters(shader);

View File

@ -1373,7 +1373,7 @@ static int action_bind_sublabel_playlist_entry(
/* Check whether runtime info is valid */ /* Check whether runtime info is valid */
if (entry->runtime_status == PLAYLIST_RUNTIME_VALID) if (entry->runtime_status == PLAYLIST_RUNTIME_VALID)
{ {
int n = 0; size_t n = 0;
char tmp[64]; char tmp[64];
tmp[0 ] = '\n'; tmp[0 ] = '\n';

View File

@ -6682,8 +6682,10 @@ static int xmb_list_push(void *data, void *userdata,
bool menu_show_dump_disc = settings->bools.menu_show_dump_disc; bool menu_show_dump_disc = settings->bools.menu_show_dump_disc;
bool menu_show_shutdown = settings->bools.menu_show_shutdown; bool menu_show_shutdown = settings->bools.menu_show_shutdown;
bool menu_show_reboot = settings->bools.menu_show_reboot; bool menu_show_reboot = settings->bools.menu_show_reboot;
#if !defined(IOS)
bool menu_show_quit_retroarch = settings->bools.menu_show_quit_retroarch; bool menu_show_quit_retroarch = settings->bools.menu_show_quit_retroarch;
bool menu_show_restart_ra = settings->bools.menu_show_restart_retroarch; bool menu_show_restart_ra = settings->bools.menu_show_restart_retroarch;
#endif
bool menu_show_information = settings->bools.menu_show_information; bool menu_show_information = settings->bools.menu_show_information;
bool menu_show_help = settings->bools.menu_show_help; bool menu_show_help = settings->bools.menu_show_help;
bool kiosk_mode_enable = settings->bools.kiosk_mode_enable; bool kiosk_mode_enable = settings->bools.kiosk_mode_enable;

View File

@ -3696,7 +3696,7 @@ static unsigned menu_displaylist_parse_content_information(
bool content_loaded = false; bool content_loaded = false;
bool playlist_valid = false; bool playlist_valid = false;
unsigned count = 0; unsigned count = 0;
int n = 0; size_t n = 0;
char core_name[PATH_MAX_LENGTH]; char core_name[PATH_MAX_LENGTH];
char tmp[8192]; char tmp[8192];

View File

@ -659,7 +659,7 @@ void runtime_log_get_last_played_str(runtime_log_t *runtime_log,
char tmp[64]; char tmp[64];
bool has_am_pm = false; bool has_am_pm = false;
const char *format_str = ""; const char *format_str = "";
int n = 0; size_t n = 0;
tmp[0] = '\0'; tmp[0] = '\0';