Source-Changes-HG archive

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

[src/trunk]: src/share/mk Don't error out for non-literal format strings with...



details:   https://anonhg.NetBSD.org/src/rev/cd1908b16783
branches:  trunk
changeset: 778079:cd1908b16783
user:      joerg <joerg%NetBSD.org@localhost>
date:      Thu Mar 15 15:04:23 2012 +0000

description:
Don't error out for non-literal format strings with Clang until the rest
of the __printflike changes are in the tree.

diffstat:

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

diffs (17 lines):

diff -r 5e9e54fe7b07 -r cd1908b16783 share/mk/bsd.sys.mk
--- a/share/mk/bsd.sys.mk       Thu Mar 15 13:25:46 2012 +0000
+++ b/share/mk/bsd.sys.mk       Thu Mar 15 15:04:23 2012 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.sys.mk,v 1.212 2012/03/15 02:00:52 joerg Exp $
+#      $NetBSD: bsd.sys.mk,v 1.213 2012/03/15 15:04:23 joerg Exp $
 #
 # Build definitions used for NetBSD source tree builds.
 
@@ -61,6 +61,7 @@
 .endif
 .if ${WARNS} > 3 && (defined(HAVE_GCC) || defined(HAVE_LLVM))
 CFLAGS+=       -Wsign-compare -Wformat=2
+CFLAGS+=       ${${ACTIVE_CC} == "clang":? -Wno-error=format-nonliteral :}
 CFLAGS+=       ${${ACTIVE_CC} == "gcc":? -Wno-format-zero-length :}
 .endif
 .if ${WARNS} > 3 && defined(HAVE_LLVM)



Home | Main Index | Thread Index | Old Index