summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2011-08-16 10:35:03 +0000
committerchristos <christos@NetBSD.org>2011-08-16 10:35:03 +0000
commit35f9146e91b9f85d7571dd33fe326fe5290eaa89 (patch)
tree8949a848729e474a887bb171333bee02cb74f0f0
parente406f909a4dbdeffc7588fd9addf6c274ec2f5e0 (diff)
document non-literal format strings
-rw-r--r--lib/libpthread/Makefile5
-rw-r--r--lib/libterminfo/Makefile3
-rw-r--r--libexec/atrun/Makefile3
-rw-r--r--libexec/rshd/Makefile4
-rw-r--r--usr.bin/id/Makefile4
-rw-r--r--usr.bin/jot/Makefile4
-rw-r--r--usr.bin/lam/Makefile4
-rw-r--r--usr.bin/printf/Makefile4
8 files changed, 22 insertions, 9 deletions
diff --git a/lib/libpthread/Makefile b/lib/libpthread/Makefile
index da2b02f1fb0..15afd5e468d 100644
--- a/lib/libpthread/Makefile
+++ b/lib/libpthread/Makefile
@@ -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 @@ pthread_mutex.po: pthread_mutex.o
${_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 --git a/lib/libterminfo/Makefile b/lib/libterminfo/Makefile
index ad2cf0ddd40..b4b566fb059 100644
--- a/lib/libterminfo/Makefile
+++ b/lib/libterminfo/Makefile
@@ -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 @@ compiled_terms:
@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 --git a/libexec/atrun/Makefile b/libexec/atrun/Makefile
index 87bcd6d2685..7c3593adca6 100644
--- a/libexec/atrun/Makefile
+++ b/libexec/atrun/Makefile
@@ -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 @@ BINDIR= /usr/libexec
MAN= atrun.8
CPPFLAGS+= -I${NETBSDSRCDIR}/usr.bin/at
+COPTS.atrun.c = -Wno-format-nonliteral
.include <bsd.prog.mk>
diff --git a/libexec/rshd/Makefile b/libexec/rshd/Makefile
index 6d00d836653..c9ad8971508 100644
--- a/libexec/rshd/Makefile
+++ b/libexec/rshd/Makefile
@@ -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 @@ DPADD+= ${LIBPAM} ${PAM_STATIC_DPADD}
LDADD+= -lpam ${PAM_STATIC_LDADD}
.endif
+COPTS.rshd.c = -Wno-format-nonliteral
+
.include <bsd.prog.mk>
diff --git a/usr.bin/id/Makefile b/usr.bin/id/Makefile
index 3bf20845238..ce0d24dc5eb 100644
--- a/usr.bin/id/Makefile
+++ b/usr.bin/id/Makefile
@@ -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 @@ MAN= id.1 groups.1 whoami.1
LINKS= ${BINDIR}/id ${BINDIR}/groups
LINKS+= ${BINDIR}/id ${BINDIR}/whoami
+COPTS.id.c += -Wno-format-nonliteral
+
.include <bsd.prog.mk>
diff --git a/usr.bin/jot/Makefile b/usr.bin/jot/Makefile
index aad626cf02d..2c574975a31 100644
--- a/usr.bin/jot/Makefile
+++ b/usr.bin/jot/Makefile
@@ -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 --git a/usr.bin/lam/Makefile b/usr.bin/lam/Makefile
index 542be2305be..88e77b20687 100644
--- a/usr.bin/lam/Makefile
+++ b/usr.bin/lam/Makefile
@@ -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 --git a/usr.bin/printf/Makefile b/usr.bin/printf/Makefile
index 6b7b31e02e2..0a8cba83613 100644
--- a/usr.bin/printf/Makefile
+++ b/usr.bin/printf/Makefile
@@ -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>