This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch to warn about non-static declaration follows static one
- To: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Subject: Re: Patch to warn about non-static declaration follows static one
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Sun, 25 Oct 1998 12:20:31 -0700
- cc: mark at markmitchell dot com, egcs-patches at cygnus dot com
- Reply-To: law at cygnus dot com
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