Add -Wall,-Werror compiler flags

This commit is contained in:
2022-11-16 23:01:50 -05:00
parent d2c59352bb
commit c67d4f4583
7 changed files with 15 additions and 5 deletions

View File

@@ -31,6 +31,9 @@ LISP_FUNC_1(ucl_builtin_type, scope, arg) {
assert(0);
return NULL;
}
assert(0);
return ucl_error_create("Unreachable error in 'ucl_builtin_type'");
}
LISP_FUNC_1(ucl_builtin_error, scope, arg) {
@@ -147,7 +150,7 @@ LISP_FUNC_2(ucl_builtin_concat, scope, arg0, arg1) {
}
int len = strlen(arg0->string) + strlen(arg1->string);
char *outstr = malloc(strlen(arg0->string) + strlen(arg1->string));
char *outstr = malloc(len);
outstr[0] = '\0';
strcat(outstr, arg0->string);
strcat(outstr, arg1->string);