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 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


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