This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: squelch 120+ complaints about missing initializers
- To: Zack Weinberg <zackw at stanford dot edu>
- Subject: Re: squelch 120+ complaints about missing initializers
- From: Richard Henderson <rth at redhat dot com>
- Date: Wed, 28 Feb 2001 00:12:34 -0800
- Cc: gcc-patches at gcc dot gnu dot org
- References: <20010227222142.N27567@wolery.stanford.edu>
On Tue, Feb 27, 2001 at 10:21:42PM -0800, Zack Weinberg wrote:
> Why do we use that convoluted phrasing for this warning? We know
> exactly which data element needs an initializer.
I assumed it was dual use for with syntax errors or such,
but could easily be out to lunch.
> * gcc.c, cp/lang-specs.h, f/lang-specs.h, java/lang-specs.h,
> objc/lang-specs.h: Add zero initializer for cpp_spec field to
> all array elements.
> * cp/lang-specs.h: Don't put an #ifdef inside the initializer
> list; set a default for CPLUSPLUS_CPP_SPEC and use it.
Ok.
r~