Module Name: src
Committed By: christos
Date: Tue Aug 23 05:22:25 UTC 2011
Modified Files:
src/share/mk: bsd.sys.mk
Log Message:
add -Wformat=2
To generate a diff of this commit:
cvs rdiff -u -r1.207 -r1.208 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.207 src/share/mk/bsd.sys.mk:1.208
--- src/share/mk/bsd.sys.mk:1.207 Fri Jul 8 16:59:53 2011
+++ src/share/mk/bsd.sys.mk Tue Aug 23 01:22:25 2011
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.sys.mk,v 1.207 2011/07/08 20:59:53 uwe Exp $
+# $NetBSD: bsd.sys.mk,v 1.208 2011/08/23 05:22:25 christos Exp $
#
# Build definitions used for NetBSD source tree builds.
@@ -60,7 +60,7 @@
CXXFLAGS+= ${${ACTIVE_CXX} == "gcc":? -Wno-non-template-friend -Wno-pmf-conversions :}
.endif
.if ${WARNS} > 3 && defined(HAVE_GCC)
-CFLAGS+= -Wsign-compare
+CFLAGS+= -Wsign-compare -Wformat=2
CFLAGS+= ${${ACTIVE_CC} == "clang":? -Wpointer-sign :}
.endif
.if (defined(HAVE_GCC) && ${HAVE_GCC} == 45 \