clang7 does not support zero sized structs
This happens with aarch64 on raspberry pi.
This commit is contained in:
parent
8f9bf3f223
commit
89ea62481d
1 changed files with 4 additions and 0 deletions
|
@ -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 a new issue