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: Jason Merrill <jason at cygnus dot com>
- Date: 22 Oct 1998 19:19:17 -0700
- Cc: egcs-patches at cygnus dot com
- References: <199810230147.VAA04359@caip.rutgers.edu>
>>>>> Kaveh R Ghazi <ghazi@caip.rutgers.edu> writes:
> It also does so in ANSI C. However not in KNR C (at least,
> not on SunOS4 cc.)
OK. In that case, it definitely should not be triggered by -pedantic,
which deals with standard violations.
> PS: I have no objection to only doing this warning when e.g. -Wall is
> on, but I'd rather not make it only on some new flag nobody is going
> to use. :-)
How about a -Wtraditional flag to warn about constructs older compilers
won't like?
Jason