Subject: Re: misc/6046: New CWARNFLAGS not unsettable
To: Todd Vierling <tv@pobox.com>
From: Erik Bertelsen <erik@mediator.uni-c.dk>
List: netbsd-bugs
Date: 08/26/1998 19:48:18
On Wed, Aug 26, 1998 at 11:12:41AM -0400, Todd Vierling wrote:
> On Wed, 26 Aug 1998, Erik Bertelsen wrote:
> 
> : 	The problem is that the -Werror is added to the previous value,
> : 	instead of being set only if it is not already set.
> 
> For this, you set WARNS=0.  Any warnings you get from -Werror when there is
> no -Wall is broken and should not compile.  -Werror should *never* be turned
> off - only particular warnings should.

In principle, I agree, but currently -- with egcs 1.1 -- I have a few
situations, where I get 'funny' warnings that aren't easily handled, e.g.
the -G related warnings on pmax and two places where egcs on the m(ac)68k
complains about bad alignment requirements that don't seem to be fatal.

To force compilation in those cases I have to change bsd.sys.mk, if I
cannot otherwise turn off -Werror.

- Erik