mirror of
https://github.com/mirror/tinycc.git
synced 2024-12-28 04:00:06 +08:00
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:
parent
0059d89c0f
commit
7d1bbc80d4
@ -39,7 +39,7 @@ DLL_EXPORT int tcc_backtrace(const char *fmt, ...)
|
|||||||
va_start(ap, fmt);
|
va_start(ap, fmt);
|
||||||
ret = vfprintf(stderr, fmt, ap);
|
ret = vfprintf(stderr, fmt, ap);
|
||||||
va_end(ap);
|
va_end(ap);
|
||||||
fprintf(stderr, nl), fflush(stderr);
|
fprintf(stderr, "%s", nl), fflush(stderr);
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
@ -341,7 +341,7 @@ static struct recursive_macro { int rm_field; } G;
|
|||||||
WRAP((printf("rm_field = %d %d\n", rm_field, WRAP(rm_field))));
|
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
|
#define IMPLICIT_INT int
|
||||||
#else
|
#else
|
||||||
#define IMPLICIT_INT
|
#define IMPLICIT_INT
|
||||||
|
Loading…
Reference in New Issue
Block a user