Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/share/mk -Wa, --fatal-warnings is a GCC flag and unknown to c...
details: https://anonhg.NetBSD.org/src/rev/d2966c703fc3
branches: trunk
changeset: 820485:d2966c703fc3
user: maya <maya%NetBSD.org@localhost>
date: Tue Jan 10 17:16:19 2017 +0000
description:
-Wa,--fatal-warnings is a GCC flag and unknown to clang. make it
GCC specific, so we can (try to) build a kernel with higher WARNS
using clang.
diffstat:
share/mk/bsd.sys.mk | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 7650da673be4 -r d2966c703fc3 share/mk/bsd.sys.mk
--- a/share/mk/bsd.sys.mk Tue Jan 10 17:00:58 2017 +0000
+++ b/share/mk/bsd.sys.mk Tue Jan 10 17:16:19 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.sys.mk,v 1.263 2016/12/24 17:44:22 christos Exp $
+# $NetBSD: bsd.sys.mk,v 1.264 2017/01/10 17:16:19 maya Exp $
#
# Build definitions used for NetBSD source tree builds.
@@ -56,7 +56,7 @@
CFLAGS+= ${${ACTIVE_CC} == "gcc" :? -Wno-traditional :}
.if !defined(NOGCCERROR)
# Set assembler warnings to be fatal
-CFLAGS+= -Wa,--fatal-warnings
+CFLAGS+= ${${ACTIVE_CC} == "gcc" :? -Wa,--fatal-warnings :}
.endif
.if ${MKRELRO:Uno} != "no"
Home |
Main Index |
Thread Index |
Old Index