mirror of
git://repo.or.cz/tinycc.git
synced 2026-06-17 15:44:18 +08:00
clang7 does not support zero sized structs
This happens with aarch64 on raspberry pi.
This commit is contained in:
parent
8f9bf3f223
commit
89ea62481d
@ -2659,7 +2659,11 @@ struct myspace {
|
||||
short int profile;
|
||||
};
|
||||
struct myspace2 {
|
||||
#if CC_NAME == CC_clang /* clang7 doesn't support zero sized structs */
|
||||
char a[1];
|
||||
#else
|
||||
char a[0];
|
||||
#endif
|
||||
};
|
||||
struct myspace3 {
|
||||
char a[1];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user