This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: two gcc changes


On Sun, Jun 24, 2007 at 04:24:18PM -0400, der Mouse wrote:
> >> (1) -W{no-,}missing-init, to control specifically the "missing
> >> initializer" warning.
> > [T]his is already fixed in current versions of GCC:
> >        -Wmissing-field-initializers
> 
> What about array initializers?  -W is documented (in the version I
> started with) as warning when "[a]n aggregate has an initializer which
> does not initialize all members", not "a structure has...".  Is this a
> documentation bug?  (I note there is a test for RECORD_TYPE in the
> conditional I modified, but I didn't dig deep enough to understand it,
> since I didn't think I needed to; does that prevent the warning from
> tripping for arrays?)

I think it's a documentation bug; at least the GCC I have handy does
not warn for arrays.

-- 
Daniel Jacobowitz
CodeSourcery


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]