C89_BUILD: Fix some clang compiler errors.

Fixes these two compile errors with C89_BUILD=1

configuration.c:2028:9: error: ISO C90 forbids mixing declarations and code [-Werror,-Wdeclaration-after-statement]
   bool has_application_data =
        ^
1 error generated.
make: *** [Makefile:164: obj-unix/configuration.o] Error 1

In file included from menu/widgets/menu_osk.c:42:
menu/widgets/menu_osk_utf8_pages.h:62:94: error: no newline at end of file [-Werror,-Wnewline-eof]
                          "ヤ","ユ","ヨ","ワ","ヲ","ァ","ィ","ゥ","ェ","ォ","⊕"};
                                                                                 ^
1 error generated.
make: *** [Makefile:163: obj-unix/menu/widgets/menu_osk.o] Error 1
This commit is contained in:
orbea 2018-01-03 03:22:25 -08:00
parent 5d5115941f
commit e1db3e7a6d
2 changed files with 3 additions and 2 deletions

View File

@ -1932,6 +1932,7 @@ static void config_set_defaults(void)
**/
static config_file_t *open_default_config_file(void)
{
bool has_application_data;
size_t path_size = PATH_MAX_LENGTH * sizeof(char);
char *application_data = (char*)malloc(PATH_MAX_LENGTH * sizeof(char));
char *conf_path = (char*)malloc(PATH_MAX_LENGTH * sizeof(char));
@ -2025,7 +2026,7 @@ static config_file_t *open_default_config_file(void)
RARCH_WARN("Created new config file in: \"%s\".\n", conf_path);
}
#elif !defined(RARCH_CONSOLE)
bool has_application_data =
has_application_data =
fill_pathname_application_data(application_data,
path_size);

View File

@ -59,4 +59,4 @@ static const char *katakana_page2_grid[] = {
"","","","","","","","","","","",
"","","","","","","","","","","",
"","","","","","","","","","","",
"","","","","","","","","","",""};
"","","","","","","","","","",""};