Patch to warn about non-static declaration follows static one
Jeffrey A Law
law@cygnus.com
Thu Oct 22 20:22:00 GMT 1998
In message < u967dcdnq2.fsf@yorick.cygnus.com >you write:
> >>>>> 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?
-Wtraditional already exists for the C front end. :-) I don't think we have
it for the C++ front end though.
jeff
More information about the Gcc-patches
mailing list