Module Name:    src
Committed By:   matt
Date:           Tue Mar 20 21:48:20 UTC 2012

Modified Files:
        src/share/mk: bsd.sys.mk

Log Message:
Add WARNS=5 to enable -Wold-style-definitions


To generate a diff of this commit:
cvs rdiff -u -r1.214 -r1.215 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.214 src/share/mk/bsd.sys.mk:1.215
--- src/share/mk/bsd.sys.mk:1.214	Sat Mar 17 18:02:41 2012
+++ src/share/mk/bsd.sys.mk	Tue Mar 20 21:48:20 2012
@@ -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+=	-Wctor-dtor-privacy -Wnon-vir
 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 :}

Reply via email to