Patch to warn about non-static declaration follows static one
Jeffrey A Law
law@cygnus.com
Sun Oct 25 13:04:00 GMT 1998
In message < 199810231526.LAA22559@caip.rutgers.edu >you write:
>
> Okay, perhaps this warning should go in -Wtraditional instead of
> -W or -Wall.
-Wtraditional seems like the right place for this warning.
> I'd like to add this flag to the gcc bootstrap procedure, however I
> would prefer not to have it done for the whole bootstrap, just the gcc
> top level directory. The language subdirectories aren't supposed to
> be compiled with a K&R compiler, so they don't need to be bothered
> with this flag.
>
> Is there an easy way to set this up? (If not, I can just add
> -Wtraditional to WARN_CFLAGS.) Or, I'll just hack something up...
No strong opinions. I thought WARN_CFLAGS only applied to the gcc subdir,
so putting it there ought to do the trick.
jeff
More information about the Gcc-patches
mailing list