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: ghazi at caip dot rutgers dot edu
- Subject: Re: Patch to warn about non-static declaration follows static one
- From: Mark Mitchell <mark at markmitchell dot com>
- Date: Thu, 22 Oct 1998 15:32:29 -0700
- CC: egcs-patches at cygnus dot com
- References: <199810221917.PAA17501@caip.rutgers.edu>
- Reply-to: mark at markmitchell dot com
>>>>> "Kaveh" == Kaveh R Ghazi <ghazi@caip.rutgers.edu> writes:
Kaveh> Although it is perhaps legal, a non-static decl
Kaveh> following a static one isn't portable. So I thought I'd
Kaveh> make gcc warn about it like it already does for the
Kaveh> opposite type of mismatch.
This should only be done at some extreme level of warning paranoia.
It's perfectly legal to omit the `static' despite the protestations of
some antiquated K&R compilers, and this warning will result in a *lot*
of noise on perfectly OK code.
--
Mark Mitchell mark@markmitchell.com
Mark Mitchell Consulting http://www.markmitchell.com