Silence some warnings
This commit is contained in:
parent
2ab779f3b5
commit
3635bf0d01
|
@ -219,7 +219,7 @@ static bool disk_index_file_read(disk_index_file_t *disk_index_file)
|
|||
}
|
||||
|
||||
/* Parse chunk */
|
||||
if (!JSON_Parser_Parse(context.parser, chunk, length, JSON_False))
|
||||
if (!JSON_Parser_Parse(context.parser, chunk, (size_t)length, JSON_False))
|
||||
{
|
||||
RARCH_ERR(
|
||||
"[disk index file] Error parsing chunk of disk index file: %s\n---snip---\n%s\n---snip---\n",
|
||||
|
|
|
@ -131,7 +131,7 @@ static void *nbio_stdio_open(const char * filename, unsigned mode)
|
|||
handle->mode = mode;
|
||||
|
||||
if (len)
|
||||
buf = malloc(len);
|
||||
buf = malloc((size_t)len);
|
||||
|
||||
if (len && !buf)
|
||||
goto error;
|
||||
|
|
|
@ -9027,13 +9027,11 @@ static int materialui_pointer_up(void *userdata,
|
|||
* to open the core information menu */
|
||||
else if (mui->is_core_updater_list)
|
||||
return materialui_menu_entry_action(mui, entry, selection, MENU_ACTION_START);
|
||||
/* In all other cases, just perform a normal 'left'
|
||||
* navigation event */
|
||||
else
|
||||
return materialui_pointer_up_swipe_horz_default(
|
||||
mui, entry, ptr, selection, entries_end, MENU_ACTION_LEFT);
|
||||
}
|
||||
break;
|
||||
/* In all other cases, just perform a normal 'left'
|
||||
* navigation event */
|
||||
return materialui_pointer_up_swipe_horz_default(
|
||||
mui, entry, ptr, selection, entries_end, MENU_ACTION_LEFT);
|
||||
case MENU_INPUT_GESTURE_SWIPE_RIGHT:
|
||||
{
|
||||
/* If we are at the top level and the navigation bar is
|
||||
|
@ -9055,13 +9053,11 @@ static int materialui_pointer_up(void *userdata,
|
|||
* to open the core information menu */
|
||||
else if (mui->is_core_updater_list)
|
||||
return materialui_menu_entry_action(mui, entry, selection, MENU_ACTION_START);
|
||||
/* In all other cases, just perform a normal 'right'
|
||||
* navigation event */
|
||||
else
|
||||
return materialui_pointer_up_swipe_horz_default(
|
||||
mui, entry, ptr, selection, entries_end, MENU_ACTION_RIGHT);
|
||||
}
|
||||
break;
|
||||
/* In all other cases, just perform a normal 'right'
|
||||
* navigation event */
|
||||
return materialui_pointer_up_swipe_horz_default(
|
||||
mui, entry, ptr, selection, entries_end, MENU_ACTION_RIGHT);
|
||||
default:
|
||||
/* Ignore input */
|
||||
break;
|
||||
|
|
|
@ -194,7 +194,7 @@ static void runtime_log_read_file(runtime_log_t *runtime_log)
|
|||
}
|
||||
|
||||
/* Parse chunk */
|
||||
if (!JSON_Parser_Parse(context.parser, chunk, length, JSON_False))
|
||||
if (!JSON_Parser_Parse(context.parser, chunk, (size_t)length, JSON_False))
|
||||
{
|
||||
RARCH_ERR("Error parsing chunk of runtime log file: %s\n---snip---\n%s\n---snip---\n", runtime_log->path, chunk);
|
||||
RtlJSONLogError(&context);
|
||||
|
|
Loading…
Reference in New Issue