mirror of
https://github.com/libretro/RetroArch
synced 2025-02-28 12:40:23 +00:00
fix some warnings
This commit is contained in:
parent
c5dedb8148
commit
60e7e5be8d
@ -159,7 +159,7 @@ static void check_variables(void)
|
||||
int i;
|
||||
g_state->refresh = atoi(var.value);
|
||||
|
||||
for (i = 0; i < sizeof(g_state->g_input) / sizeof(g_state->g_input[0]); i++)
|
||||
for (i = 0; i < (int)(sizeof(g_state->g_input) / sizeof(g_state->g_input[0])); i++)
|
||||
g_state->g_input[i].last_dt = 1.0f / g_state->refresh;
|
||||
}
|
||||
|
||||
|
@ -1268,7 +1268,7 @@ struct string_list* cdrom_get_available_drives(void)
|
||||
if (!dir_list)
|
||||
return list;
|
||||
|
||||
for (i = 0; i < dir_list->size; i++)
|
||||
for (i = 0; i < (int)dir_list->size; i++)
|
||||
{
|
||||
if (strstr(dir_list->elems[i].data, "/dev/sg"))
|
||||
{
|
||||
|
@ -33,9 +33,7 @@
|
||||
#include <vfs/vfs_implementation_cdrom.h>
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
RETRO_BEGIN_DECLS
|
||||
|
||||
libretro_vfs_implementation_file *retro_vfs_file_open_impl(const char *path, unsigned mode, unsigned hints);
|
||||
|
||||
@ -77,8 +75,6 @@ bool retro_vfs_dirent_is_dir_impl(libretro_vfs_implementation_dir *dirstream);
|
||||
|
||||
int retro_vfs_closedir_impl(libretro_vfs_implementation_dir *dirstream);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
RETRO_END_DECLS
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user