Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/share/mk Decouple clang and gcc handling a bit. Add -Wmissin...
details: https://anonhg.NetBSD.org/src/rev/446b0fd1881f
branches: trunk
changeset: 769722:446b0fd1881f
user: joerg <joerg%NetBSD.org@localhost>
date: Tue Sep 20 09:11:06 2011 +0000
description:
Decouple clang and gcc handling a bit. Add -Wmissing-noreturn for clang
builds. GCC complains about about non-void functions not returning,
which is quite a bit more bogus, so don't enable it for that.
diffstat:
share/mk/bsd.sys.mk | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (20 lines):
diff -r bfefa4a791b8 -r 446b0fd1881f share/mk/bsd.sys.mk
--- a/share/mk/bsd.sys.mk Tue Sep 20 08:42:29 2011 +0000
+++ b/share/mk/bsd.sys.mk Tue Sep 20 09:11:06 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.sys.mk,v 1.208 2011/08/23 05:22:25 christos Exp $
+# $NetBSD: bsd.sys.mk,v 1.209 2011/09/20 09:11:06 joerg Exp $
#
# Build definitions used for NetBSD source tree builds.
@@ -61,7 +61,9 @@
.endif
.if ${WARNS} > 3 && defined(HAVE_GCC)
CFLAGS+= -Wsign-compare -Wformat=2
-CFLAGS+= ${${ACTIVE_CC} == "clang":? -Wpointer-sign :}
+.endif
+.if ${WARNS} > 3 && defined(HAVE_LLVM)
+CFLAGS+= ${${ACTIVE_CC} == "clang":? -Wpointer-sign -Wmissing-noreturn :}
.endif
.if (defined(HAVE_GCC) && ${HAVE_GCC} == 45 \
&& (${MACHINE_ARCH} == "sh3eb" || ${MACHINE_ARCH} == "sh3el"))
Home |
Main Index |
Thread Index |
Old Index