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



  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


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