(C89) Buildfixes

This commit is contained in:
twinaphex 2019-03-29 12:39:03 +01:00
parent 0c91f4dff5
commit 41eab46111
2 changed files with 3 additions and 3 deletions

View File

@ -1022,7 +1022,7 @@ static void rgui_render_fs_thumbnail(void)
} }
} }
static unsigned inline rgui_get_mini_thumbnail_fullwidth(void) static unsigned INLINE rgui_get_mini_thumbnail_fullwidth(void)
{ {
unsigned width = mini_thumbnail.is_valid ? mini_thumbnail.width : 0; unsigned width = mini_thumbnail.is_valid ? mini_thumbnail.width : 0;
unsigned left_width = mini_left_thumbnail.is_valid ? mini_left_thumbnail.width : 0; unsigned left_width = mini_left_thumbnail.is_valid ? mini_left_thumbnail.width : 0;
@ -2372,7 +2372,7 @@ static bool rgui_set_aspect_ratio(rgui_t *rgui, bool delay_update)
static void *rgui_init(void **userdata, bool video_is_threaded) static void *rgui_init(void **userdata, bool video_is_threaded)
{ {
unsigned new_font_height; unsigned new_font_height;
size_t fb_pitch, start; size_t start;
rgui_t *rgui = NULL; rgui_t *rgui = NULL;
bool ret = false; bool ret = false;
settings_t *settings = config_get_ptr(); settings_t *settings = config_get_ptr();

View File

@ -5327,6 +5327,7 @@ void rarch_log_file_init(void)
/* > Attempt to initialise log file */ /* > Attempt to initialise log file */
if (!string_is_empty(settings->paths.log_dir)) if (!string_is_empty(settings->paths.log_dir))
{ {
char buf[PATH_MAX_LENGTH];
/* Create log directory, if required */ /* Create log directory, if required */
if (!path_is_directory(settings->paths.log_dir)) if (!path_is_directory(settings->paths.log_dir))
{ {
@ -5341,7 +5342,6 @@ void rarch_log_file_init(void)
} }
/* Format log file name */ /* Format log file name */
char buf[PATH_MAX_LENGTH];
fill_pathname_join(buf, settings->paths.log_dir, fill_pathname_join(buf, settings->paths.log_dir,
settings->bools.log_to_file_timestamp ? timestamped_log_file_name : file_path_str(FILE_PATH_DEFAULT_EVENT_LOG), settings->bools.log_to_file_timestamp ? timestamped_log_file_name : file_path_str(FILE_PATH_DEFAULT_EVENT_LOG),
sizeof(buf)); sizeof(buf));