History

Update for clang

Clang also removed K&R support so define IMPLICIT_INT. Fix clang warning in lib/bt-log.c

herman ten brugge committed 2 years ago

Commit 7d1bbc81 parent 0059d892 files · +2 −2Browse files

Showing the changes to tests (1 of 2 files). Show all

Unified · Split

tests/tcctest.c+1−1
@@ -341,7 +341,7 @@ static struct recursive_macro { int rm_field; } G; · 340 unmodified lines
341341 WRAP((printf("rm_field = %d %d\n", rm_field, WRAP(rm_field))));
342342 }
343343
344−#if !defined(__TINYC__) && (__GNUC__ >= 14)
344+#if !defined(__TINYC__) && (__GNUC__ >= 14 || __clang_major__ >= 15)
345345 #define IMPLICIT_INT int
346346 #else
347347 #define IMPLICIT_INT

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t