C99 structure initialisers and Samba3
tridge at samba.org
tridge at samba.org
Wed Aug 23 11:24:43 GMT 2006
Metze,
> - -Wmissing-field-initializers
> Warn if a structure's initializer has some fields missing.
> For example, the following code would cause such
> a warning, because "x.h" is implicitly zero:
>
> struct s { int f, g, h; };
> struct s x = { 3, 4 };
Doesn't the C standard say that trailing missing initializers are
guaranteed to be zero? I thought we relied on that in some places.
Cheers, Tridge
More information about the samba-technical
mailing list