O
Old Wolf
For the following code:
struct S
{
char t[5][5];
int flags;
};
void func(void)
{
struct S s = { 0 };
}
I get a "warning: missing initializer" from gcc in C99 mode.
Is there something wrong with my code or is this just
paranoia from the compiler. (My intention was that all
members of 's' be zero-initialized).
struct S
{
char t[5][5];
int flags;
};
void func(void)
{
struct S s = { 0 };
}
I get a "warning: missing initializer" from gcc in C99 mode.
Is there something wrong with my code or is this just
paranoia from the compiler. (My intention was that all
members of 's' be zero-initialized).