Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src document non-literal format strings
details: https://anonhg.NetBSD.org/src/rev/f9014a877ab3
branches: trunk
changeset: 768409:f9014a877ab3
user: christos <christos%NetBSD.org@localhost>
date: Tue Aug 16 10:35:03 2011 +0000
description:
document non-literal format strings
diffstat:
lib/libpthread/Makefile | 5 +++--
lib/libterminfo/Makefile | 3 ++-
libexec/atrun/Makefile | 3 ++-
libexec/rshd/Makefile | 4 +++-
usr.bin/id/Makefile | 4 +++-
usr.bin/jot/Makefile | 4 +++-
usr.bin/lam/Makefile | 4 +++-
usr.bin/printf/Makefile | 4 +++-
8 files changed, 22 insertions(+), 9 deletions(-)
diffs (125 lines):
diff -r 04a056f10a2d -r f9014a877ab3 lib/libpthread/Makefile
--- a/lib/libpthread/Makefile Tue Aug 16 10:34:22 2011 +0000
+++ b/lib/libpthread/Makefile Tue Aug 16 10:35:03 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.71 2010/12/24 12:41:42 skrll Exp $
+# $NetBSD: Makefile,v 1.72 2011/08/16 10:36:30 christos Exp $
#
WARNS= 4
@@ -87,7 +87,8 @@
${_MKTARGET_CREATE}
cp pthread_mutex.o pthread_mutex.po
-COPTS.pthread.c += -Wno-stack-protector
+COPTS.pthread.c += -Wno-stack-protector -Wno-format-nonliteral
+COPTS.pthread_attr.c += -Wno-format-nonliteral
MAN+= affinity.3 pthread.3 \
pthread_attr.3 \
diff -r 04a056f10a2d -r f9014a877ab3 lib/libterminfo/Makefile
--- a/lib/libterminfo/Makefile Tue Aug 16 10:34:22 2011 +0000
+++ b/lib/libterminfo/Makefile Tue Aug 16 10:35:03 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2010/07/06 05:59:53 mrg Exp $
+# $NetBSD: Makefile,v 1.13 2011/08/16 10:36:30 christos Exp $
USE_SHLIBDIR= yes
@@ -49,6 +49,7 @@
@echo "Generating compiled terminfo descriptions"
cd ${.CURDIR} && ${HOST_SH} ./genterms >compiled_terms.c
+COPTS.tparm.c = -Wno-format-nonliteral
man: terminfo.5
gen: hash compiled_terms man
diff -r 04a056f10a2d -r f9014a877ab3 libexec/atrun/Makefile
--- a/libexec/atrun/Makefile Tue Aug 16 10:34:22 2011 +0000
+++ b/libexec/atrun/Makefile Tue Aug 16 10:35:03 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.13 2002/09/18 06:24:33 lukem Exp $
+# $NetBSD: Makefile,v 1.14 2011/08/16 10:35:03 christos Exp $
.include <bsd.own.mk>
@@ -7,5 +7,6 @@
MAN= atrun.8
CPPFLAGS+= -I${NETBSDSRCDIR}/usr.bin/at
+COPTS.atrun.c = -Wno-format-nonliteral
.include <bsd.prog.mk>
diff -r 04a056f10a2d -r f9014a877ab3 libexec/rshd/Makefile
--- a/libexec/rshd/Makefile Tue Aug 16 10:34:22 2011 +0000
+++ b/libexec/rshd/Makefile Tue Aug 16 10:35:03 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.18 2009/03/16 02:24:57 lukem Exp $
+# $NetBSD: Makefile,v 1.19 2011/08/16 10:35:03 christos Exp $
# from: @(#)Makefile 8.1 (Berkeley) 6/4/93
.include <bsd.own.mk>
@@ -21,4 +21,6 @@
LDADD+= -lpam ${PAM_STATIC_LDADD}
.endif
+COPTS.rshd.c = -Wno-format-nonliteral
+
.include <bsd.prog.mk>
diff -r 04a056f10a2d -r f9014a877ab3 usr.bin/id/Makefile
--- a/usr.bin/id/Makefile Tue Aug 16 10:34:22 2011 +0000
+++ b/usr.bin/id/Makefile Tue Aug 16 10:35:03 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2009/04/14 22:15:21 lukem Exp $
+# $NetBSD: Makefile,v 1.13 2011/08/16 10:37:21 christos Exp $
# from: @(#)Makefile 8.1 (Berkeley) 6/6/93
PROG= id
@@ -6,4 +6,6 @@
LINKS= ${BINDIR}/id ${BINDIR}/groups
LINKS+= ${BINDIR}/id ${BINDIR}/whoami
+COPTS.id.c += -Wno-format-nonliteral
+
.include <bsd.prog.mk>
diff -r 04a056f10a2d -r f9014a877ab3 usr.bin/jot/Makefile
--- a/usr.bin/jot/Makefile Tue Aug 16 10:34:22 2011 +0000
+++ b/usr.bin/jot/Makefile Tue Aug 16 10:35:03 2011 +0000
@@ -1,8 +1,10 @@
-# $NetBSD: Makefile,v 1.5 2006/10/08 17:52:28 peter Exp $
+# $NetBSD: Makefile,v 1.6 2011/08/16 10:37:21 christos Exp $
# @(#)Makefile 8.1 (Berkeley) 6/6/93
PROG= jot
DPADD= ${LIBMATH}
LDADD= -lm
+COPTS.jot.c += -Wno-format-nonliteral
+
.include <bsd.prog.mk>
diff -r 04a056f10a2d -r f9014a877ab3 usr.bin/lam/Makefile
--- a/usr.bin/lam/Makefile Tue Aug 16 10:34:22 2011 +0000
+++ b/usr.bin/lam/Makefile Tue Aug 16 10:35:03 2011 +0000
@@ -1,6 +1,8 @@
-# $NetBSD: Makefile,v 1.4 2006/10/08 17:52:29 peter Exp $
+# $NetBSD: Makefile,v 1.5 2011/08/16 10:37:21 christos Exp $
# @(#)Makefile 8.1 (Berkeley) 6/6/93
PROG= lam
+COPTS.lam.c += -Wno-format-nonliteral
+
.include <bsd.prog.mk>
diff -r 04a056f10a2d -r f9014a877ab3 usr.bin/printf/Makefile
--- a/usr.bin/printf/Makefile Tue Aug 16 10:34:22 2011 +0000
+++ b/usr.bin/printf/Makefile Tue Aug 16 10:35:03 2011 +0000
@@ -1,6 +1,8 @@
-# $NetBSD: Makefile,v 1.10 2009/04/14 22:15:25 lukem Exp $
+# $NetBSD: Makefile,v 1.11 2011/08/16 10:37:21 christos Exp $
# from: @(#)Makefile 8.1 (Berkeley) 6/6/93
PROG= printf
+COPTS.printf.c = -Wno-format-nonliteral
+
.include <bsd.prog.mk>
Home |
Main Index |
Thread Index |
Old Index