Update for clang

Clang also removed K&R support so define IMPLICIT_INT.
Fix clang warning in lib/bt-log.c
This commit is contained in:
herman ten brugge 2024-01-17 07:07:48 +01:00
parent 0059d89c0f
commit 7d1bbc80d4
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ DLL_EXPORT int tcc_backtrace(const char *fmt, ...)
va_start(ap, fmt);
ret = vfprintf(stderr, fmt, ap);
va_end(ap);
fprintf(stderr, nl), fflush(stderr);
fprintf(stderr, "%s", nl), fflush(stderr);
}
return ret;
}

View File

@ -341,7 +341,7 @@ static struct recursive_macro { int rm_field; } G;
WRAP((printf("rm_field = %d %d\n", rm_field, WRAP(rm_field))));
}
#if !defined(__TINYC__) && (__GNUC__ >= 14)
#if !defined(__TINYC__) && (__GNUC__ >= 14 || __clang_major__ >= 15)
#define IMPLICIT_INT int
#else
#define IMPLICIT_INT