This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Patch to warn about non-static declaration follows static one


>>>>> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]