Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/share/mk Add WARNS=5 to enable -Wold-style-definitions
details: https://anonhg.NetBSD.org/src/rev/2ade03345249
branches: trunk
changeset: 778259:2ade03345249
user: matt <matt%NetBSD.org@localhost>
date: Tue Mar 20 21:48:20 2012 +0000
description:
Add WARNS=5 to enable -Wold-style-definitions
diffstat:
share/mk/bsd.sys.mk | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (19 lines):
diff -r 341b5367269d -r 2ade03345249 share/mk/bsd.sys.mk
--- a/share/mk/bsd.sys.mk Tue Mar 20 21:37:19 2012 +0000
+++ b/share/mk/bsd.sys.mk Tue Mar 20 21:48:20 2012 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.sys.mk,v 1.214 2012/03/17 18:02:41 christos Exp $
+# $NetBSD: bsd.sys.mk,v 1.215 2012/03/20 21:48:20 matt Exp $
#
# Build definitions used for NetBSD source tree builds.
@@ -60,6 +60,9 @@
CXXFLAGS+= ${${ACTIVE_CXX} == "gcc":? -Wno-non-template-friend -Wno-pmf-conversions :}
.endif
.if ${WARNS} > 3 && (defined(HAVE_GCC) || defined(HAVE_LLVM))
+.if ${WARNS} > 4
+CFLAGS+= -Wold-style-definition
+.endif
CFLAGS+= -Wsign-compare -Wformat=2
CFLAGS+= ${${ACTIVE_CC} == "clang":? -Wno-error=format-nonliteral :}
CFLAGS+= ${${ACTIVE_CC} == "gcc":? -Wno-format-zero-length :}
Home |
Main Index |
Thread Index |
Old Index