RFC: should we use -Werror? (& sample patch to do it)

Kaveh R. Ghazi ghazi@caip.rutgers.edu
Fri Sep 7 18:39:00 GMT 2001


 > From: Zack Weinberg <zack@codesourcery.com>
 > 
 > > I thought starting with one file would ease people in slowly.  Once we
 > > got the whole compiler I would take out the individual rules and put
 > > it in the .c.o rule or into GCC_WARN_CFLAGS or something.  So whatever
 > > extra complexity added would be temporary.
 > 
 > (There are cleaner ways to do the same thing, e.g. look at the hack
 > used to avoid -pedantic for the non-C front ends.)
 > zw

I suppose you're referring to the following from Makefile.in?

 > # This is how we control whether or not the additional warnings are applied.
 > .-warn = $(STRICT_WARN)
 > GCC_WARN_CFLAGS = $(LOOSE_WARN) $($(@D)-warn)

I can't figure this out, can you please explain it?  How does it work?

		Thanks,
		--Kaveh
--
Kaveh R. Ghazi			Engagement Manager / Project Services
ghazi@caip.rutgers.edu		Qwest Internet Solutions



More information about the Gcc mailing list