If WARNS>0 and !defined(NOGCCERROR), add

-Wa,--fatal-warnings
to CFLAGS to set assembler warnings to be fatal.
(Done via CFLAGS instead of AFLAGS so that all assembling, not just
that of .S/.s files, uses the option.)
This commit is contained in:
lukem 2008-07-21 23:30:48 +00:00
parent 3035c3a0cc
commit 9ceb85ca59
1 changed files with 5 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: bsd.sys.mk,v 1.163 2008/04/30 21:15:33 garbled Exp $
# $NetBSD: bsd.sys.mk,v 1.164 2008/07/21 23:30:48 lukem Exp $
#
# Build definitions used for NetBSD source tree builds.
@ -16,6 +16,10 @@ CFLAGS+= -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
# differently in traditional and ansi environments' which is the warning
# we wanted, and now we don't get anymore.
CFLAGS+= -Wno-sign-compare -Wno-traditional
.if !defined(NOGCCERROR)
# Set assembler warnings to be fatal
CFLAGS+= -Wa,--fatal-warnings
.endif
# Set linker warnings to be fatal
# XXX no proper way to avoid "FOO is a patented algorithm" warnings
# XXX on linking static libs