clang7 does not support zero sized structs

This happens with aarch64 on raspberry pi.
This commit is contained in:
herman ten brugge 2020-09-21 15:55:58 +02:00
parent 8f9bf3f223
commit 89ea62481d

View File

@ -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];