Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/share/mk add -Wformat=2



details:   https://anonhg.NetBSD.org/src/rev/8a5ba1dceafc
branches:  trunk
changeset: 768617:8a5ba1dceafc
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Aug 23 05:22:25 2011 +0000

description:
add -Wformat=2

diffstat:

 share/mk/bsd.sys.mk |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 5384d6dcc084 -r 8a5ba1dceafc share/mk/bsd.sys.mk
--- a/share/mk/bsd.sys.mk       Tue Aug 23 03:00:35 2011 +0000
+++ b/share/mk/bsd.sys.mk       Tue Aug 23 05:22:25 2011 +0000
@@ -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 \



Home | Main Index | Thread Index | Old Index