我想知道来自编译器的这条消息是否应该仔细考虑。
让我们看看以下代码:
struct s
{
int a;
int b[];
};
void fun(struct s c)
{
}
int main()
{
return 0;
}
会出现以下错误:
main.c:7:6: note: the ABI of passing struct with a flexible array member has changed in GCC 4.4
我的问题是:在更大的项目中安全使用这种结构吗?这种结构可能带来哪些风险和影响(编译器消息除外)?
答案 0 :(得分:-2)