This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: two gcc changes
- From: Daniel Jacobowitz <drow at false dot org>
- To: der Mouse <mouse at Rodents dot Montreal dot QC dot CA>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sun, 24 Jun 2007 15:38:32 -0400
- Subject: Re: two gcc changes
- References: <200706241640.MAA24974@Sparkle.Rodents.Montreal.QC.CA>
On Sun, Jun 24, 2007 at 12:10:55PM -0400, der Mouse wrote:
> I run NetBSD, and I've made two changes to gcc in my local source tree.
> This is the version shipped with NetBSD 3.1, the latest NetBSD release;
> --version says "gcc (GCC) 3.3.3 (NetBSD nb3 20040520)". The NetBSD gcc
> folks say sending these here is an appropriate thing to do with them.
This is a very old version of GCC you're patching.
> (1) -W{no-,}missing-init, to control specifically the "missing
> initializer" warning. (There are things -W turns on that cannot be
> turned on any other way, and which I like, but I do not want the
> "missing initializer" warnings.)
And accordingly this is already fixed in current versions of GCC:
-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:
--
Daniel Jacobowitz
CodeSourcery