Subject: Make assembler warnings fatal?
To: None <tech-kern@netbsd.org, tech-toolchain@netbsd.org>
From: Simon Burge <simonb@wasabisystems.com>
List: tech-toolchain
Date: 02/27/2005 00:39:18
What do folks think of making assembler warnings fatal?  On mips at
least we've hit a few new warnings that appeared with binutils 2.15 and
have been fixed, but these would have been caught much easier if we
enabled the --fatal-warnings flag to the assembler.

Just adding -Wa,--fatal-warnings to AFLAGS in bsd.sys.mk didn't help.
Adding that to AFLAGS in sys/conf/conf/Makefile.kern.inc works, but this
probably doesn't catch LKMs etc?  Where would be the best place to add
this?  Also, it probably should be enabled for userland assembly code
too.

Any arguments against not enabling --fatal-warnings ?

Simon.
--
Simon Burge                                   <simonb@wasabisystems.com>
NetBSD Development, Support and Service:   http://www.wasabisystems.com/