Module Name: src
Committed By: joerg
Date: Sun May 22 20:24:46 UTC 2011
Modified Files:
src/share/mk: bsd.sys.mk
Log Message:
No -Wno-traditional for clang.
To generate a diff of this commit:
cvs rdiff -u -r1.194 -r1.195 src/share/mk/bsd.sys.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/share/mk/bsd.sys.mk
diff -u src/share/mk/bsd.sys.mk:1.194 src/share/mk/bsd.sys.mk:1.195
--- src/share/mk/bsd.sys.mk:1.194 Tue May 17 01:12:34 2011
+++ src/share/mk/bsd.sys.mk Sun May 22 20:24:46 2011
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.sys.mk,v 1.194 2011/05/17 01:12:34 christos Exp $
+# $NetBSD: bsd.sys.mk,v 1.195 2011/05/22 20:24:46 joerg Exp $
#
# Build definitions used for NetBSD source tree builds.
@@ -27,7 +27,8 @@
# in a traditional environment' warning, as opposed to 'this code behaves
# 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
+CFLAGS+= -Wno-sign-compare
+CFLAGS+= ${${ACTIVE_CC} != "clang":? -Wno-traditional :}
.if !defined(NOGCCERROR)
# Set assembler warnings to be fatal
CFLAGS+= -Wa,--fatal-warnings