Clang also removed K&R support so define IMPLICIT_INT. Fix clang warning in lib/bt-log.c
Showing the changes to tests (1 of 2 files). Show all
Unified · Split
| @@ -341,7 +341,7 @@ static struct recursive_macro { int rm_field; } G; · 340 unmodified lines | ||
| 341 | 341 | WRAP((printf("rm_field = %d %d\n", rm_field, WRAP(rm_field)))); |
| 342 | 342 | } |
| 343 | 343 | |
| 344 | −#if !defined(__TINYC__) && (__GNUC__ >= 14) | |
| 344 | +#if !defined(__TINYC__) && (__GNUC__ >= 14 || __clang_major__ >= 15) | |
| 345 | 345 | #define IMPLICIT_INT int |
| 346 | 346 | #else |
| 347 | 347 | #define IMPLICIT_INT |