introduce some common variables for use in GCC warning disables:

GCC_NO_FORMAT_TRUNCATION    -Wno-format-truncation (GCC 7/8)
GCC_NO_STRINGOP_TRUNCATION  -Wno-stringop-truncation (GCC 8)
GCC_NO_STRINGOP_OVERFLOW    -Wno-stringop-overflow (GCC 8)
GCC_NO_CAST_FUNCTION_TYPE   -Wno-cast-function-type (GCC 8)

use these to turn off warnings for most GCC-8 complaints.  many
of these are false positives, most of the real bugs are already
commited, or are yet to come.


we plan to introduce versions of (some?) of these that use the
"-Wno-error=" form, which still displays the warnings but does
not make it an error, and all of the above will be re-considered
as either being "fix me" (warning still displayed) or "warning
is wrong."
This commit is contained in:
mrg 2019-10-13 07:28:04 +00:00
parent 2e65b46d20
commit de11d87641
163 changed files with 563 additions and 241 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.40 2019/08/15 21:05:16 uwe Exp $ # $NetBSD: Makefile,v 1.41 2019/10/13 07:28:04 mrg Exp $
# @(#)Makefile 8.1 (Berkeley) 5/31/93 # @(#)Makefile 8.1 (Berkeley) 5/31/93
.include <bsd.own.mk> .include <bsd.own.mk>
@ -50,4 +50,6 @@ LDADD+= -lrmt
DPADD+= ${LIBRMT} DPADD+= ${LIBRMT}
.endif .endif
COPTS.tar.c+= ${GCC_NO_STRINGOP_TRUNCATION}
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.17 2019/09/29 23:44:58 mrg Exp $ # $NetBSD: Makefile,v 1.18 2019/10/13 07:28:04 mrg Exp $
PROG=netpgpverify PROG=netpgpverify
BINDIR= /usr/bin BINDIR= /usr/bin
@ -32,6 +32,8 @@ EXTDIST=${.CURDIR}/../../dist
COPTS+= -Wno-error=implicit-fallthrough COPTS+= -Wno-error=implicit-fallthrough
.endif .endif
COPTS.libverify.c+= ${GCC_NO_FORMAT_TRUNCATION}
.include <bsd.prog.mk> .include <bsd.prog.mk>
t tst: ${PROG} t tst: ${PROG}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.3 2018/02/04 03:19:52 christos Exp $ # $NetBSD: Makefile,v 1.4 2019/10/13 07:28:05 mrg Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
@ -26,4 +26,6 @@ LIBDPLIBS+= crypto ${OPENSSL}/lib/libcrypto
LIBDPLIBS+= z ${NETBSDSRCDIR}/lib/libz LIBDPLIBS+= z ${NETBSDSRCDIR}/lib/libz
LIBDPLIBS+= bz2 ${NETBSDSRCDIR}/lib/libbz2 LIBDPLIBS+= bz2 ${NETBSDSRCDIR}/lib/libbz2
COPTS.crypto.c+= ${GCC_NO_STRINGOP_OVERFLOW}
.include <bsd.lib.mk> .include <bsd.lib.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.11 2019/09/29 23:44:58 mrg Exp $ # $NetBSD: Makefile,v 1.12 2019/10/13 07:28:05 mrg Exp $
LIB=netpgpverify LIB=netpgpverify
SRCS+=b64.c SRCS+=b64.c
@ -27,8 +27,7 @@ INCSDIR=/usr/include/netpgp
.include <bsd.own.mk> .include <bsd.own.mk>
.if defined(HAVE_GCC) && ${HAVE_GCC} >= 7 && ${ACTIVE_CC} == "gcc" COPTS+= ${${ACTIVE_CC} == "gcc":? -Wno-implicit-fallthrough :}
COPTS+= -Wno-error=implicit-fallthrough COPTS.libverify.c+= ${GCC_NO_FORMAT_TRUNCATION}
.endif
.include <bsd.lib.mk> .include <bsd.lib.mk>

View File

@ -1,8 +1,10 @@
# $NetBSD: Makefile,v 1.2 2010/11/21 19:19:22 adam Exp $ # $NetBSD: Makefile,v 1.3 2019/10/13 07:28:05 mrg Exp $
BINDIR=/usr/bin BINDIR=/usr/bin
PROG= ssh-agent PROG= ssh-agent
SRCS= ssh-agent.c ssh-pkcs11-client.c SRCS= ssh-agent.c ssh-pkcs11-client.c
COPTS.ssh-agent.c+= ${GCC_NO_FORMAT_TRUNCATION}
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.5 2019/10/12 18:32:21 christos Exp $ # $NetBSD: Makefile,v 1.6 2019/10/13 07:28:05 mrg Exp $
BINDIR= /usr/bin BINDIR= /usr/bin
@ -7,4 +7,6 @@ SRCS= ssh-keygen.c moduli.c sshsig.c
COPTS.ssh-keygen.c= -Wno-pointer-sign COPTS.ssh-keygen.c= -Wno-pointer-sign
COPTS.ssh-keygen.c+= ${GCC_NO_FORMAT_TRUNCATION}
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.14 2018/04/06 18:58:59 christos Exp $ # $NetBSD: Makefile,v 1.15 2019/10/13 07:28:05 mrg Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
@ -23,4 +23,6 @@ LDADD+= -lgssapi -lheimntlm ${LIBKRB5_LDADD}
DPADD+= ${LIBGSSAPI} ${LIBHEIMNTLM} ${LIBKRB5_DPADD} DPADD+= ${LIBGSSAPI} ${LIBHEIMNTLM} ${LIBKRB5_DPADD}
.endif .endif
COPTS.sshconnect.c+= ${GCC_NO_FORMAT_TRUNCATION}
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.18 2019/10/12 18:32:21 christos Exp $ # $NetBSD: Makefile,v 1.19 2019/10/13 07:28:05 mrg Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
@ -58,8 +58,6 @@ LDADD+= -lldap -lssl -llber
DPADD+= ${LIBLDAP} ${LIBSSL} ${LIBLBER} DPADD+= ${LIBLDAP} ${LIBSSL} ${LIBLBER}
.endif .endif
.include <bsd.prog.mk>
LDADD+= -lcrypt -lutil LDADD+= -lcrypt -lutil
DPADD+= ${LIBCRYPT} ${LIBUTIL} DPADD+= ${LIBCRYPT} ${LIBUTIL}
@ -72,3 +70,8 @@ CPPFLAGS+=-DSMALL
LDADD+= -lblacklist LDADD+= -lblacklist
DPADD+= ${LIBBLACKLIST} DPADD+= ${LIBBLACKLIST}
.endif .endif
COPTS.sshlogin.c+= ${GCC_NO_STRINGOP_TRUNCATION}
COPTS.ldapauth.c+= ${GCC_NO_STRINGOP_TRUNCATION} ${GCC_NO_STRINGOP_OVERFLOW}
.include <bsd.prog.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.28 2019/10/12 18:32:22 christos Exp $ # $NetBSD: Makefile,v 1.29 2019/10/13 07:28:05 mrg Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
@ -120,4 +120,7 @@ COPTS.poly1305.c+= -O0
COPTS.umac.c+= -O0 COPTS.umac.c+= -O0
.endif .endif
COPTS.hostfile.c+= ${GCC_NO_FORMAT_TRUNCATION}
COPTS.sshkey.c+= ${GCC_NO_FORMAT_TRUNCATION}
.include <bsd.lib.mk> .include <bsd.lib.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.12 2017/05/21 15:28:38 riastradh Exp $ # $NetBSD: Makefile,v 1.13 2019/10/13 07:28:05 mrg Exp $
.include "${.CURDIR}/../Makefile.inc" .include "${.CURDIR}/../Makefile.inc"
@ -73,5 +73,6 @@ build_version.h: get_args.c
echo '#define BUILD_HOST "'unknown'"' >> ${.TARGET} echo '#define BUILD_HOST "'unknown'"' >> ${.TARGET}
echo '#define BUILD_DATE "'unknown'"' >> ${.TARGET} echo '#define BUILD_DATE "'unknown'"' >> ${.TARGET}
COPTS.sun_map.c+= ${GCC_NO_STRINGOP_TRUNCATION}
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.14 2019/10/10 02:30:43 kre Exp $ # $NetBSD: Makefile,v 1.15 2019/10/13 07:28:05 mrg Exp $
LIB= fetch LIB= fetch
SRCS= fetch.c common.c ftp.c http.c file.c SRCS= fetch.c common.c ftp.c http.c file.c
@ -36,8 +36,6 @@ httperr.h: ${LIBFETCHDIR}/http.errors ${LIBFETCHDIR}/errlist.sh
CFLAGS+= -Wno-macro-redefined # _REENTRANT redefined CFLAGS+= -Wno-macro-redefined # _REENTRANT redefined
.endif .endif
.if defined(HAVE_GCC) && ${HAVE_GCC} >= 8 && ${ACTIVE_CC} == "gcc" COPTS.http.c+= ${GCC_NO_STRINGOP_TRUNCATION}
COPTS.http.c += -Wno-error=stringop-truncation
.endif
.include <bsd.lib.mk> .include <bsd.lib.mk>

View File

@ -1,5 +1,5 @@
# from: @(#)Makefile 5.4 (Berkeley) 6/24/90 # from: @(#)Makefile 5.4 (Berkeley) 6/24/90
# $NetBSD: Makefile,v 1.14 2019/09/29 23:44:58 mrg Exp $ # $NetBSD: Makefile,v 1.15 2019/10/13 07:28:06 mrg Exp $
# #
# By default, flex will be configured to generate 8-bit scanners only if the # By default, flex will be configured to generate 8-bit scanners only if the
# -8 flag is given. If you want it to always generate 8-bit scanners, add # -8 flag is given. If you want it to always generate 8-bit scanners, add
@ -78,4 +78,7 @@ COPTS.scan.c+= -O1
. endif . endif
.endif .endif
COPTS.filter.c+= ${GCC_NO_FORMAT_TRUNCATION}
COPTS.misc.c+= ${GCC_NO_FORMAT_TRUNCATION}
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.3 2017/01/11 12:19:43 joerg Exp $ # $NetBSD: Makefile.inc,v 1.4 2019/10/13 07:28:06 mrg Exp $
WARNS?= 1 # XXX -Wcast-qual -Wshadow WARNS?= 1 # XXX -Wcast-qual -Wshadow
CWARNFLAGS.clang+= -Wno-format -Wno-tautological-compare \ CWARNFLAGS.clang+= -Wno-format -Wno-tautological-compare \
@ -32,6 +32,8 @@ LDADD+= -L${IPFOBJDIR} -lipf -lkvm
CLEANFILES+= y.tab.c y.tab.h CLEANFILES+= y.tab.c y.tab.h
COPTS+= ${GCC_NO_STRINGOP_TRUNCATION}
.PATH: ${UDIST} \ .PATH: ${UDIST} \
${UDIST}/lib \ ${UDIST}/lib \
${UDIST}/tools \ ${UDIST}/tools \

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.6 2019/09/29 23:44:58 mrg Exp $ # $NetBSD: Makefile,v 1.7 2019/10/13 07:28:06 mrg Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
@ -109,4 +109,6 @@ COPTS.ipf_y.c+= -O1
. endif . endif
.endif .endif
COPTS.fil.c+= ${GCC_NO_STRINGOP_OVERFLOW}
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.4 2012/01/01 01:19:20 wrstuden Exp $ # $NetBSD: Makefile,v 1.5 2019/10/13 07:28:06 mrg Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
@ -23,4 +23,6 @@ ISCSIDIST= ${.CURDIR}/../dist
LIBDPLIBS+= pthread ${.CURDIR}/../../../../lib/libpthread LIBDPLIBS+= pthread ${.CURDIR}/../../../../lib/libpthread
COPTS.target.c+= ${GCC_NO_FORMAT_TRUNCATION}
.include <bsd.lib.mk> .include <bsd.lib.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.10 2019/07/24 14:07:17 joerg Exp $ # $NetBSD: Makefile,v 1.11 2019/10/13 07:28:06 mrg Exp $
.include <bsd.init.mk> .include <bsd.init.mk>
@ -455,4 +455,7 @@ COPTS.archive_read_support_format_7zip.c += -Wno-error=implicit-fallthrough
COPTS.archive_read_support_format_mtree.c += -Wno-error=implicit-fallthrough COPTS.archive_read_support_format_mtree.c += -Wno-error=implicit-fallthrough
.endif .endif
COPTS.target.c+= ${GCC_NO_STRINGOP_TRUNCATION}
COPTS.archive_write_set_format_iso9660.c+= ${GCC_NO_STRINGOP_TRUNCATION}
.include <bsd.lib.mk> .include <bsd.lib.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.25 2019/10/01 16:02:12 christos Exp $ # $NetBSD: Makefile,v 1.26 2019/10/13 07:28:06 mrg Exp $
USE_SHLIBDIR=yes USE_SHLIBDIR=yes
.include <bsd.own.mk> .include <bsd.own.mk>
@ -165,10 +165,9 @@ CLEANFILES+= tokdefs.h scanner.h
COPTS.bpf_image.c+= -Wno-format-nonliteral COPTS.bpf_image.c+= -Wno-format-nonliteral
.if defined(HAVE_GCC) && ${HAVE_GCC} >= 7 && ${ACTIVE_CC} == "gcc" COPTS.gencode.c+= ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 7:? -Wno-error=implicit-fallthrough :}
COPTS.pcap.c+= -Wno-error=format-truncation COPTS.pcap.c+= ${GCC_NO_FORMAT_TRUNCATION}
COPTS.gencode.c+= -Wno-error=implicit-fallthrough COPTS.pcap-bpf.c+= ${GCC_NO_STRINGOP_TRUNCATION}
.endif
CWARNFLAGS.clang+= -Wno-format-extra-args \ CWARNFLAGS.clang+= -Wno-format-extra-args \
-Wno-unneeded-internal-declaration -Wno-unneeded-internal-declaration

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.25 2018/07/17 18:55:27 joerg Exp $ # $NetBSD: Makefile,v 1.26 2019/10/13 07:28:06 mrg Exp $
LIB= LLVMAnalysis LIB= LLVMAnalysis
@ -99,4 +99,5 @@ SRCS+= AliasAnalysis.cpp \
.include <bsd.hostlib.mk> .include <bsd.hostlib.mk>
.else .else
.include <bsd.lib.mk> .include <bsd.lib.mk>
COPTS.ValueTracking.cpp+= ${GCC_NO_STRINGOP_OVERFLOW}
.endif .endif

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.10 2019/03/10 12:14:06 mrg Exp $ # $NetBSD: Makefile,v 1.11 2019/10/13 07:28:06 mrg Exp $
LIB= LLVMRuntimeDyld LIB= LLVMRuntimeDyld
@ -21,4 +21,5 @@ SRCS+= RuntimeDyldELFMips.cpp
.include <bsd.hostlib.mk> .include <bsd.hostlib.mk>
.else .else
.include <bsd.lib.mk> .include <bsd.lib.mk>
COPTS.RuntimeDyldChecker.cpp+= ${GCC_NO_STRINGOP_OVERFLOW}
.endif .endif

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.18 2019/03/11 17:59:28 christos Exp $ # $NetBSD: Makefile,v 1.19 2019/10/13 07:28:06 mrg Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
@ -46,4 +46,6 @@ SRCS+= ${SRCS.libmandoc} compat_strtonum.c compat_reallocarray.c
COPTS.man_term.c+= -Wno-error=array-bounds COPTS.man_term.c+= -Wno-error=array-bounds
COPTS.tbl_term.c+= ${GCC_NO_FORMAT_TRUNCATION}
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.23 2019/10/04 09:47:27 mrg Exp $ # $NetBSD: Makefile,v 1.24 2019/10/13 07:28:07 mrg Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
@ -93,5 +93,10 @@ COPTS.ntp_control.c+= -Wno-error=maybe-uninitialized
.endif .endif
COPTS.ntp_loopfilter.c+= ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} == 8:? -Wno-error=restrict :} COPTS.ntp_loopfilter.c+= ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} == 8:? -Wno-error=restrict :}
COPTS.ntp_loopfilter.c+= ${GCC_NO_FORMAT_TRUNCATION}
COPTS.ntp_crypto.c+= ${GCC_NO_FORMAT_TRUNCATION}
COPTS.refclock_parse.c+= ${GCC_NO_FORMAT_TRUNCATION}
COPTS.refclock_leitch.c+= ${GCC_NO_FORMAT_TRUNCATION}
COPTS.refclock_neoclock4x.c+= ${GCC_NO_FORMAT_TRUNCATION}
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.7 2013/12/28 03:19:43 christos Exp $ # $NetBSD: Makefile,v 1.8 2019/10/13 07:28:07 mrg Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
@ -21,4 +21,6 @@ CPPFLAGS+=-I${IDIST}/include -I${IDIST}/sntp/libopts
.PATH: ${DIST} .PATH: ${DIST}
COPTS.ntpq.c+= ${GCC_NO_STRINGOP_TRUNCATION}
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.6 2013/12/28 03:19:43 christos Exp $ # $NetBSD: Makefile,v 1.7 2019/10/13 07:28:07 mrg Exp $
USE_FORT?= yes # network client/server USE_FORT?= yes # network client/server
@ -31,4 +31,6 @@ CPPFLAGS+= -DSAVENAME=\"/var/db/sntp.state\"
LDADD+= -L${LIBISC} -liscntp -levent -lm LDADD+= -L${LIBISC} -liscntp -levent -lm
DPADD+= ${LIBM} ${LIBEVENT} DPADD+= ${LIBM} ${LIBEVENT}
COPTS.utilities.c+= ${GCC_NO_FORMAT_TRUNCATION}
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.20 2018/02/02 01:02:40 mrg Exp $ # $NetBSD: Makefile,v 1.21 2019/10/13 07:28:07 mrg Exp $
LIBISPRIVATE=yes LIBISPRIVATE=yes
@ -99,4 +99,6 @@ CPPFLAGS.ntp_calendar.c += -DMKREPRO_DATE=\"${MKREPRO_DATE:Q}\"
CPPFLAGS.ntp_calendar.c += -DMKREPRO_TIME=\"${MKREPRO_TIME:Q}\" CPPFLAGS.ntp_calendar.c += -DMKREPRO_TIME=\"${MKREPRO_TIME:Q}\"
.endif .endif
COPTS.timetoa.c+= ${GCC_NO_FORMAT_TRUNCATION}
.include <bsd.lib.mk> .include <bsd.lib.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.3 2019/09/29 23:44:59 mrg Exp $ # $NetBSD: Makefile,v 1.4 2019/10/13 07:28:07 mrg Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
WARNS=5 WARNS=5
@ -21,9 +21,12 @@ CPPFLAGS+= -I${SRCDIR}
CPPFLAGS+= -D__unix__ CPPFLAGS+= -D__unix__
.if defined(HAVE_GCC) && ${HAVE_GCC} >= 7 && ${ACTIVE_CC} == "gcc" .if defined(HAVE_GCC) && ${HAVE_GCC} >= 7 && ${ACTIVE_CC} == "gcc"
COPTS.file_media.c+= -Wno-error=implicit-fallthrough COPTS.file_media.c+= -Wno-implicit-fallthrough
COPTS.pathname.c+= -Wno-error=implicit-fallthrough COPTS.pathname.c+= -Wno-implicit-fallthrough
COPTS.pdisk.c+= -Wno-error=implicit-fallthrough COPTS.pdisk.c+= -Wno-implicit-fallthrough
.endif .endif
COPTS.partition_map.c+= ${GCC_NO_STRINGOP_TRUNCATION}
COPTS.pdisk.c+= ${GCC_NO_STRINGOP_TRUNCATION}
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.1 2013/11/28 22:33:43 christos Exp $ # $NetBSD: Makefile,v 1.2 2019/10/13 07:28:07 mrg Exp $
.include "../Makefile.inc" .include "../Makefile.inc"
@ -39,4 +39,6 @@ COPTS.${f}.c+= -Wno-pointer-sign
CWARNFLAGS.clang+= -Wno-tautological-compare CWARNFLAGS.clang+= -Wno-tautological-compare
COPTS.session.c+= ${GCC_NO_STRINGOP_TRUNCATION}
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.1 2013/11/28 22:33:43 christos Exp $ # $NetBSD: Makefile,v 1.2 2019/10/13 07:28:07 mrg Exp $
.include "../Makefile.inc" .include "../Makefile.inc"
@ -9,4 +9,6 @@ MAN= pppstats.8
LINKS= ${BINDIR}/pppstats ${BINDIR}/slstats LINKS= ${BINDIR}/pppstats ${BINDIR}/slstats
MLINKS= pppstats.8 slstats.8 MLINKS= pppstats.8 slstats.8
COPTS.pppstats.c+= ${GCC_NO_STRINGOP_TRUNCATION}
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.21 2019/01/05 21:44:40 christos Exp $ # $NetBSD: Makefile,v 1.22 2019/10/13 07:28:07 mrg Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
@ -224,9 +224,6 @@ LDADD+= -levent -lterminfo -lutil -lm
DPADD+= ${LIBEVENT} ${LIBTERMINFO} ${LIBUTIL} DPADD+= ${LIBEVENT} ${LIBTERMINFO} ${LIBUTIL}
COPTS.format.c += -Wno-format-nonliteral COPTS.format.c += -Wno-format-nonliteral
#COPTS.cmd-display-message.c += -Wno-format-nonliteral COPTS.utempter.c+= ${GCC_NO_STRINGOP_TRUNCATION}
#COPTS.cmd-pipe-pane.c += -Wno-format-nonliteral
#COPTS.server-client.c += -Wno-format-nonliteral
#COPTS.status.c += -Wno-format-nonliteral
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.10 2016/01/23 21:22:45 christos Exp $ # $NetBSD: Makefile,v 1.11 2019/10/13 07:28:07 mrg Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
@ -38,4 +38,7 @@ config.h: config.h.in
${TOOL_SED} -e s/@MACHINE@/${MACHINE}/ < $? > $@ ${TOOL_SED} -e s/@MACHINE@/${MACHINE}/ < $? > $@
COPTS.display.c = -Wno-format-nonliteral COPTS.display.c = -Wno-format-nonliteral
COPTS.commands.c+= ${GCC_NO_CAST_FUNCTION_TYPE}
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.23 2019/10/10 02:35:45 kre Exp $ # $NetBSD: Makefile,v 1.24 2019/10/13 07:28:08 mrg Exp $
# $FreeBSD: head/cddl/lib/libdtrace/Makefile 314654 2017-03-04 11:30:04Z ngie $ # $FreeBSD: head/cddl/lib/libdtrace/Makefile 314654 2017-03-04 11:30:04Z ngie $
@ -85,10 +85,8 @@ COPTS.dt_printf.c += -Wno-stack-protector
COPTS.dt_program.c += -Wno-stack-protector COPTS.dt_program.c += -Wno-stack-protector
COPTS.dt_provider.c += -Wno-stack-protector COPTS.dt_provider.c += -Wno-stack-protector
COPTS.dt_subr.c += -Wno-stack-protector COPTS.dt_subr.c += -Wno-stack-protector
.if defined(HAVE_GCC) && ${HAVE_GCC} >= 8 && ${ACTIVE_CC} == "gcc" COPTS.dt_lex.c += ${GCC_NO_STRINGOP_TRUNCATION}
COPTS.dt_lex.c += -Wno-error=stringop-truncation COPTS.dt_pid.c += ${GCC_NO_STRINGOP_TRUNCATION}
COPTS.dt_pid.c += -Wno-error=stringop-truncation
.endif
COPTS.dt_consume.c += -Wno-parentheses COPTS.dt_consume.c += -Wno-parentheses
COPTS.dt_consume.c += ${${ACTIVE_CC} == "gcc" :? -Wno-maybe-uninitialized :} COPTS.dt_consume.c += ${${ACTIVE_CC} == "gcc" :? -Wno-maybe-uninitialized :}
@ -109,7 +107,7 @@ CPPFLAGS+= -I${OPENSOLARIS_SYS_DISTDIR}/uts/sparc
CPPFLAGS+= -I${OPENSOLARIS_SYS_DISTDIR}/uts/arm CPPFLAGS+= -I${OPENSOLARIS_SYS_DISTDIR}/uts/arm
.PATH: ${.CURDIR}/../../dist/lib/libdtrace/arm .PATH: ${.CURDIR}/../../dist/lib/libdtrace/arm
.endif .endif
COPTS.dt_link.c += ${${ACTIVE_CC} == "gcc" :? -Wno-format-truncation :} COPTS.dt_link.c += ${GCC_NO_STRINGOP_TRUNCATION}
LFLAGS+=-l LFLAGS+=-l

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.2 2016/01/14 02:30:18 christos Exp $ # $NetBSD: Makefile,v 1.3 2019/10/13 07:28:08 mrg Exp $
# $FreeBSD: src/gnu/usr.bin/groff/src/roff/troff/Makefile,v 1.4 2003/05/01 13:22:20 ru Exp $ # $FreeBSD: src/gnu/usr.bin/groff/src/roff/troff/Makefile,v 1.4 2003/05/01 13:22:20 ru Exp $
@ -15,6 +15,8 @@ USETBL=
CWARNFLAGS.clang+= -Wno-format-security CWARNFLAGS.clang+= -Wno-format-security
COPTS.input.cpp+= ${GCC_NO_STRINGOP_OVERFLOW}
.include <bsd.prog.mk> .include <bsd.prog.mk>
majorminor.cpp: ${GROFF_DIST}/VERSION ${GROFF_DIST}/REVISION majorminor.cpp: ${GROFF_DIST}/VERSION ${GROFF_DIST}/REVISION

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.6 2018/02/25 00:16:48 mrg Exp $ # $NetBSD: Makefile,v 1.7 2019/10/13 07:28:08 mrg Exp $
.include "${.CURDIR}/../../Makefile.inc" .include "${.CURDIR}/../../Makefile.inc"
PROG= xcvs PROG= xcvs
@ -33,4 +33,12 @@ SRCS+= gssapi-client.c
DPADD+= ${LIBCRYPT} ${LIBZ} DPADD+= ${LIBCRYPT} ${LIBZ}
LDADD+= -lcrypt -lz LDADD+= -lcrypt -lz
COPTS.commit.c+= ${GCC_NO_STRINGOP_OVERFLOW}
COPTS.logmsg.c+= ${GCC_NO_STRINGOP_OVERFLOW}
COPTS.ls.c+= ${GCC_NO_STRINGOP_OVERFLOW}
COPTS.input.c+= ${GCC_NO_STRINGOP_OVERFLOW}
COPTS.tag.c+= ${GCC_NO_STRINGOP_OVERFLOW}
COPTS.subr.c+= ${GCC_NO_STRINGOP_OVERFLOW}
COPTS.filesubr.c+= ${GCC_NO_STRINGOP_OVERFLOW}
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.8 2016/04/20 17:18:52 christos Exp $ # $NetBSD: Makefile,v 1.9 2019/10/13 07:28:08 mrg Exp $
LIBISPRIVATE= yes LIBISPRIVATE= yes
@ -29,4 +29,6 @@ CWARNFLAGS.clang+= -Wno-unused-value
.PATH: ${DIST}/libiberty .PATH: ${DIST}/libiberty
COPTS.dyn-string.c+= ${GCC_NO_STRINGOP_TRUNCATION}
.include <bsd.lib.mk> .include <bsd.lib.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.4 2014/03/17 09:24:11 mrg Exp $ # $NetBSD: Makefile,v 1.5 2019/10/13 07:28:08 mrg Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
@ -15,5 +15,7 @@ DPADD+= ${LIBUTIL} ${LIBXAW} ${LIBXMU} ${LIBXT} ${LIBSM} ${LIBICE} \
CPPFLAGS+=-DHAS_OPENPTY -DHAVE_UTIL_H CPPFLAGS+=-DHAS_OPENPTY -DHAVE_UTIL_H
COPTS.xconsole.c+= ${GCC_NO_STRINGOP_OVERFLOW}
.include <bsd.x11.mk> .include <bsd.x11.mk>
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.7 2015/07/19 23:15:06 mrg Exp $ # $NetBSD: Makefile,v 1.8 2019/10/13 07:28:08 mrg Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
@ -23,5 +23,7 @@ DPADD+= ${LIBXAW} ${LIBXMU} ${LIBXT} ${LIBSM} ${LIBICE} \
CWARNFLAGS.clang+= -Wno-format CWARNFLAGS.clang+= -Wno-format
COPTS+= ${GCC_NO_STRINGOP_OVERFLOW}
.include <bsd.x11.mk> .include <bsd.x11.mk>
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.ximcp,v 1.4 2016/06/13 20:03:07 ryoon Exp $ # $NetBSD: Makefile.ximcp,v 1.5 2019/10/13 07:28:08 mrg Exp $
.PATH: ${X11SRCDIR.X11}/modules/im/ximcp .PATH: ${X11SRCDIR.X11}/modules/im/ximcp
SRCS.ximcp= \ SRCS.ximcp= \
@ -39,8 +39,10 @@ CPPFLAGS+= \
-DTRANS_CLIENT \ -DTRANS_CLIENT \
-DHASXDMAUTH -DHASXDMAUTH
CPPFLAGS.imDefLkup.c= -Wno-error COPTS.imDefLkup.c= -Wno-error
CPPFLAGS.imRm.c= -Wno-error COPTS.imRm.c= -Wno-error
CPPFLAGS.imTrans.c= -Wno-error COPTS.imTrans.c= -Wno-error
CPPFLAGS.imLcLkup.c= -Wno-stack-protector COPTS.imLcLkup.c= -Wno-stack-protector
CPPFLAGS.imInsClbk.c= -Wno-unused-value COPTS.imInsClbk.c= -Wno-unused-value
COPTS.imDefIm.c= ${GCC_NO_STRINGOP_OVERFLOW}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.xlibi18n,v 1.2 2016/06/02 22:41:26 mrg Exp $ # $NetBSD: Makefile.xlibi18n,v 1.3 2019/10/13 07:28:08 mrg Exp $
.PATH: ${X11SRCDIR.X11}/modules/lc/gen .PATH: ${X11SRCDIR.X11}/modules/lc/gen
SRCS.xlibi18n= lcGenConv.c SRCS.xlibi18n= lcGenConv.c
@ -10,3 +10,5 @@ CPPFLAGS+= \
CPPFLAGS+= \ CPPFLAGS+= \
${XLOCALE.DEFINES} \ ${XLOCALE.DEFINES} \
-DHASXDMAUTH -DHASXDMAUTH
COPTS.lcGenConv.c+= ${GCC_NO_STRINGOP_OVERFLOW}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.2 2013/06/06 06:18:15 mrg Exp $ # $NetBSD: Makefile,v 1.3 2019/10/13 07:28:08 mrg Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
@ -17,5 +17,7 @@ CPPFLAGS+= -I${X11SRCDIR.XvMC}/include
LIBDPLIBS= Xext ${.CURDIR}/../libXext \ LIBDPLIBS= Xext ${.CURDIR}/../libXext \
X11 ${.CURDIR}/../libX11/dynamic X11 ${.CURDIR}/../libX11/dynamic
COPTS.XvMCWrapper.c= ${GCC_NO_STRINGOP_OVERFLOW}
.include <bsd.x11.mk> .include <bsd.x11.mk>
.include <bsd.lib.mk> .include <bsd.lib.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.4 2018/12/25 08:59:06 maya Exp $ # $NetBSD: Makefile,v 1.5 2019/10/13 07:28:09 mrg Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
@ -19,5 +19,7 @@ LIBDPLIBS= X11 ${.CURDIR}/../libX11/dynamic
PKGCONFIG= xkbfile PKGCONFIG= xkbfile
COPTS.xkbatom.c= ${GCC_NO_STRINGOP_OVERFLOW}
.include <bsd.x11.mk> .include <bsd.x11.mk>
.include <bsd.lib.mk> .include <bsd.lib.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.17 2018/12/31 12:13:50 mrg Exp $ # $NetBSD: Makefile,v 1.18 2019/10/13 07:28:09 mrg Exp $
DRIVER= xf86-video-sis DRIVER= xf86-video-sis
DRIVER_NAME= sis_drv DRIVER_NAME= sis_drv
@ -24,7 +24,7 @@ CWARNFLAGS.clang+= -Wno-parentheses
# XXX # XXX
COPTS.sis_driver.c+= ${${ACTIVE_CC} == "gcc":? -Wno-error=discarded-qualifiers :} COPTS.sis_driver.c+= ${${ACTIVE_CC} == "gcc":? -Wno-error=discarded-qualifiers :}
COPTS.sis_utility.c+= ${${ACTIVE_CC} == "gcc":? -Wno-error=discarded-qualifiers :} COPTS.sis_utility.c+= ${${ACTIVE_CC} == "gcc":? -Wno-error=discarded-qualifiers :} ${GCC_NO_STRINGOP_OVERFLOW}
COPTS.initextx.c+= ${${ACTIVE_CC} == "gcc":? -Wno-error=discarded-qualifiers :} COPTS.initextx.c+= ${${ACTIVE_CC} == "gcc":? -Wno-error=discarded-qualifiers :}
COPTS.sis_driver.c+= ${${ACTIVE_CC} == "clang":? -Wno-error=incompatible-pointer-types-discards-qualifiers :} COPTS.sis_driver.c+= ${${ACTIVE_CC} == "clang":? -Wno-error=incompatible-pointer-types-discards-qualifiers :}
COPTS.sis_utility.c+= ${${ACTIVE_CC} == "clang":? -Wno-error=incompatible-pointer-types-discards-qualifiers :} COPTS.sis_utility.c+= ${${ACTIVE_CC} == "clang":? -Wno-error=incompatible-pointer-types-discards-qualifiers :}

View File

@ -1,7 +1,9 @@
# $NetBSD: Makefile,v 1.1 2018/08/12 13:02:25 christos Exp $ # $NetBSD: Makefile,v 1.2 2019/10/13 07:28:09 mrg Exp $
BASE= ${.CURDIR:T} BASE= ${.CURDIR:T}
.include "${.CURDIR}/../Makefile.inc" .include "${.CURDIR}/../Makefile.inc"
COPTS.discover.c+= ${GCC_NO_STRINGOP_TRUNCATION}
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.1 2018/04/07 22:31:37 christos Exp $ # $NetBSD: Makefile,v 1.2 2019/10/13 07:28:09 mrg Exp $
SRCS = dhcrelay.c SRCS = dhcrelay.c
PROG = dhcrelay PROG = dhcrelay
@ -6,4 +6,6 @@ MAN = dhcrelay.8
DHCPSRCDIR= relay DHCPSRCDIR= relay
COPTS.dhcrelay.c+= ${GCC_NO_STRINGOP_TRUNCATION}
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.1 2018/04/07 22:31:37 christos Exp $ # $NetBSD: Makefile,v 1.2 2019/10/13 07:28:09 mrg Exp $
LIBISPRIVATE= yes LIBISPRIVATE= yes
@ -11,4 +11,7 @@ MAN = dhcp-options.5 dhcp-eval.5
DHCPSRCDIR= common DHCPSRCDIR= common
COPTS.discover.c+= ${GCC_NO_STRINGOP_TRUNCATION}
COPTS.parse.c+= ${GCC_NO_FORMAT_TRUNCATION} ${GCC_NO_CAST_FUNCTION_TYPE}
.include <bsd.lib.mk> .include <bsd.lib.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.10 2019/02/26 07:31:49 rin Exp $ # $NetBSD: Makefile,v 1.11 2019/10/13 07:28:09 mrg Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
@ -58,3 +58,7 @@ DIST= ${NETBSDSRCDIR}/external/zlib/pigz/dist
GZIPDIST= ${NETBSDSRCDIR}/usr.bin/gzip GZIPDIST= ${NETBSDSRCDIR}/usr.bin/gzip
.PATH: ${GZIPDIST} .PATH: ${GZIPDIST}
.endif .endif
.if !defined(HOSTPROG)
COPTS.pigz.c+= ${GCC_NO_STRINGOP_OVERFLOW}
.endif

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.45 2011/08/24 17:39:32 plunky Exp $ # $NetBSD: Makefile,v 1.46 2019/10/13 07:28:09 mrg Exp $
# @(#)Makefile 8.2 (Berkeley) 4/27/95 # @(#)Makefile 8.2 (Berkeley) 4/27/95
.include <bsd.own.mk> .include <bsd.own.mk>
@ -54,4 +54,7 @@ clobber:
${_MKMSG_REMOVE} "${DESTDIR}/var/games/hackdir/bones*" ${_MKMSG_REMOVE} "${DESTDIR}/var/games/hackdir/bones*"
rm -f ${DESTDIR}/var/games/hackdir/bones* rm -f ${DESTDIR}/var/games/hackdir/bones*
COPTS.hack.objnam.c+= ${GCC_NO_STRINGOP_TRUNCATION} ${GCC_NO_STRINGOP_OVERFLOW}
COPTS.hack.pager.c+= ${GCC_NO_STRINGOP_TRUNCATION}
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.9 2014/03/30 02:26:09 dholland Exp $ # $NetBSD: Makefile,v 1.10 2019/10/13 07:28:09 mrg Exp $
PROG= hunt PROG= hunt
SRCS= connect.c hunt.c otto.c playit.c server.c SRCS= connect.c hunt.c otto.c playit.c server.c
@ -9,4 +9,6 @@ HIDEGAME=hidegame
CPPFLAGS+=-I${.CURDIR}/../include CPPFLAGS+=-I${.CURDIR}/../include
COPTS.hunt.c+= ${GCC_NO_STRINGOP_TRUNCATION}
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.20 2018/06/11 14:18:16 kamil Exp $ # $NetBSD: Makefile,v 1.21 2019/10/13 07:28:09 mrg Exp $
# @(#)Makefile 8.1 (Berkeley) 5/31/93 # @(#)Makefile 8.1 (Berkeley) 5/31/93
PROG= rogue PROG= rogue
@ -14,5 +14,7 @@ MAN= rogue.6
SUBDIR.roff+=USD.doc SUBDIR.roff+=USD.doc
COPTS.score.c+= ${GCC_NO_FORMAT_TRUNCATION}
.include <bsd.prog.mk> .include <bsd.prog.mk>
.include <bsd.subdir.mk> .include <bsd.subdir.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.7 2010/02/03 15:34:39 roy Exp $ # $NetBSD: Makefile,v 1.8 2019/10/13 07:28:10 mrg Exp $
# @(#)Makefile 8.1 (Berkeley) 5/31/93 # @(#)Makefile 8.1 (Berkeley) 5/31/93
PROG= tetris PROG= tetris
@ -9,4 +9,6 @@ LDADD= -lterminfo
HIDEGAME=hidegame HIDEGAME=hidegame
SETGIDGAME=yes SETGIDGAME=yes
COPTS.tetris.c+= ${GCC_NO_FORMAT_TRUNCATION}
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.8 2010/05/30 08:28:53 tnozaki Exp $ # $NetBSD: Makefile.inc,v 1.9 2019/10/13 07:28:10 mrg Exp $
# sources # sources
.PATH: ${ARCHDIR}/citrus ${.CURDIR}/citrus .PATH: ${ARCHDIR}/citrus ${.CURDIR}/citrus
@ -23,3 +23,7 @@ CPPFLAGS.citrus_lc_monetary.c+= -I${LIBCDIR}/locale
CPPFLAGS.citrus_lc_numeric.c+= -I${LIBCDIR}/locale CPPFLAGS.citrus_lc_numeric.c+= -I${LIBCDIR}/locale
CPPFLAGS.citrus_lc_time.c+= -I${LIBCDIR}/locale CPPFLAGS.citrus_lc_time.c+= -I${LIBCDIR}/locale
CPPFLAGS.citrus_lc_messages.c+= -I${LIBCDIR}/locale CPPFLAGS.citrus_lc_messages.c+= -I${LIBCDIR}/locale
COPTS.citrus_iconv.c+= ${GCC_NO_FORMAT_TRUNCATION}
COPTS.citrus_csmapper.c+= ${GCC_NO_FORMAT_TRUNCATION}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.90 2019/10/10 08:37:16 kre Exp $ # $NetBSD: Makefile.inc,v 1.91 2019/10/13 07:28:10 mrg Exp $
# @(#)Makefile.inc 8.2 (Berkeley) 9/5/93 # @(#)Makefile.inc 8.2 (Berkeley) 9/5/93
# net sources # net sources
@ -30,10 +30,6 @@ LPREFIX=_nsyy
YPREFIX=_nsyy YPREFIX=_nsyy
YHEADER=1 YHEADER=1
.if defined(HAVE_GCC) && ${HAVE_GCC} >= 8 && ${ACTIVE_CC} == "gcc"
COPTS.getaddrinfo.c += -Wno-error=stringop-overflow
.endif
CLEANFILES+=nsparser.c nslexer.c nsparser.h CLEANFILES+=nsparser.c nslexer.c nsparser.h
nslexer.c: nslexer.l nsparser.h nslexer.c: nslexer.l nsparser.h
@ -154,3 +150,5 @@ MLINKS+=getaddrinfo.3 freeaddrinfo.3 \
MAN+= sctp_bindx.3 sctp_connectx.3 sctp_freepaddrs.3 sctp_getaddrlen.3 \ MAN+= sctp_bindx.3 sctp_connectx.3 sctp_freepaddrs.3 sctp_getaddrlen.3 \
sctp_getassocid.3 sctp_getpaddrs.3 sctp_opt_info.3 sctp_peeloff.3 \ sctp_getassocid.3 sctp_getpaddrs.3 sctp_opt_info.3 sctp_peeloff.3 \
sctp_recvmsg.3 sctp_send.3 sctp_sendmsg.3 sctp_recvmsg.3 sctp_send.3 sctp_sendmsg.3
COPTS.getaddrinfo.c+= ${GCC_NO_STRINGOP_OVERFLOW}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.7 2019/10/10 08:37:16 kre Exp $ # $NetBSD: Makefile.inc,v 1.8 2019/10/13 07:28:10 mrg Exp $
# net sources # net sources
.PATH: ${.CURDIR}/resolv .PATH: ${.CURDIR}/resolv
@ -10,6 +10,4 @@ SRCS+= h_errno.c herror.c res_comp.c res_data.c res_debug.c \
# For COMPAT__RES # For COMPAT__RES
SRCS+= res_compat.c SRCS+= res_compat.c
.if defined(HAVE_GCC) && ${HAVE_GCC} >= 8 && ${ACTIVE_CC} == "gcc" COPTS.res_query.c+= ${GCC_NO_STRINGOP_OVERFLOW}
COPTS.res_query.c += -Wno-error=stringop-overflow
.endif

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.25 2019/10/10 08:37:16 kre Exp $ # $NetBSD: Makefile.inc,v 1.26 2019/10/13 07:28:10 mrg Exp $
# librpc sources # librpc sources
.PATH: ${.CURDIR}/rpc .PATH: ${.CURDIR}/rpc
@ -18,18 +18,6 @@ SRCS+= auth_none.c auth_unix.c authunix_prot.c bindresvport.c \
CPPFLAGS+= -DPORTMAP CPPFLAGS+= -DPORTMAP
.if defined(HAVE_GCC) && ${HAVE_GCC} >= 8 && ${ACTIVE_CC} == "gcc"
COPTS.clnt_bcast.c += -Wno-error=cast-function-type
COPTS.clnt_generic.c += -Wno-error=cast-function-type
COPTS.clnt_vc.c += -Wno-error=cast-function-type
COPTS.pmap_getmaps.c += -Wno-error=cast-function-type
COPTS.rpc_generic.c += -Wno-error=cast-function-type
COPTS.rpcb_clnt.c += -Wno-error=cast-function-type
COPTS.svc_simple.c += -Wno-error=cast-function-type
COPTS.xdr_sizeof.c += -Wno-error=cast-function-type
COPTS.getrpcent.c += -Wno-error=stringop-truncation
.endif
MAN+= bindresvport.3 getnetconfig.3 getnetpath.3 getrpcent.3 getrpcport.3 \ MAN+= bindresvport.3 getnetconfig.3 getnetpath.3 getrpcent.3 getrpcport.3 \
rpc.3 rpc_soc.3 rpc_clnt_auth.3 rpc_clnt_calls.3 rpc_clnt_create.3 \ rpc.3 rpc_soc.3 rpc_clnt_auth.3 rpc_clnt_calls.3 rpc_clnt_create.3 \
rpc_svc_calls.3 rpc_svc_create.3 rpc_svc_err.3 rpc_svc_reg.3 \ rpc_svc_calls.3 rpc_svc_create.3 rpc_svc_err.3 rpc_svc_reg.3 \
@ -179,3 +167,13 @@ MLINKS+= bindresvport.3 bindresvport_sa.3 \
xdr.3 xdr_vector.3 \ xdr.3 xdr_vector.3 \
xdr.3 xdr_void.3 \ xdr.3 xdr_void.3 \
xdr.3 xdr_wrapstring.3 xdr.3 xdr_wrapstring.3
COPTS.clnt_bcast.c+= ${GCC_NO_CAST_FUNCTION_TYPE}
COPTS.clnt_generic.c+= ${GCC_NO_CAST_FUNCTION_TYPE}
COPTS.clnt_vc.c+= ${GCC_NO_CAST_FUNCTION_TYPE}
COPTS.rpcb_clnt.c+= ${GCC_NO_CAST_FUNCTION_TYPE}
COPTS.xdr_sizeof.c+= ${GCC_NO_CAST_FUNCTION_TYPE}
COPTS.svc_simple.c+= ${GCC_NO_CAST_FUNCTION_TYPE}
COPTS.pmap_getmaps.c+= ${GCC_NO_CAST_FUNCTION_TYPE}
COPTS.rpc_generic.c+= ${GCC_NO_CAST_FUNCTION_TYPE}
COPTS.getrpcent.c+= ${GCC_NO_STRINGOP_TRUNCATION}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.65 2017/06/30 20:26:52 kre Exp $ # $NetBSD: Makefile,v 1.66 2019/10/13 07:28:10 mrg Exp $
# @(#)Makefile 8.1 (Berkeley) 6/4/93 # @(#)Makefile 8.1 (Berkeley) 6/4/93
USE_SHLIBDIR= yes USE_SHLIBDIR= yes
@ -137,3 +137,7 @@ COPTS.literal.c+= -Wno-sign-conversion
COPTS.tokenizer.c+= -Wno-cast-qual COPTS.tokenizer.c+= -Wno-cast-qual
COPTS.tokenizern.c+= -Wno-cast-qual COPTS.tokenizern.c+= -Wno-cast-qual
.endif .endif
COPTS.history.c+= ${GCC_NO_STRINGOP_OVERFLOW}
COPTS.historyn.c+= ${GCC_NO_STRINGOP_OVERFLOW}
COPTS.readline.c+= ${GCC_NO_STRINGOP_TRUNCATION} ${GCC_NO_STRINGOP_OVERFLOW}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.5 2013/09/11 23:04:10 joerg Exp $ # $NetBSD: Makefile,v 1.6 2019/10/13 07:28:10 mrg Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
@ -15,4 +15,6 @@ WARNS?= 5
LIBDPLIBS+= pthread ${.CURDIR}/../libpthread LIBDPLIBS+= pthread ${.CURDIR}/../libpthread
COPTS.isns.c+= ${GCC_NO_STRINGOP_TRUNCATION}
.include <bsd.lib.mk> .include <bsd.lib.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.10 2019/10/10 02:39:07 kre Exp $ # $NetBSD: Makefile,v 1.11 2019/10/13 07:28:10 mrg Exp $
# Copyright 2001 Mark R V Murray # Copyright 2001 Mark R V Murray
# All rights reserved. # All rights reserved.
# #
@ -35,6 +35,4 @@ LIBDPLIBS+= util ${.CURDIR}/../../../libutil
.include "${.CURDIR}/../mod.mk" .include "${.CURDIR}/../mod.mk"
.if defined(HAVE_GCC) && ${HAVE_GCC} >= 8 && ${ACTIVE_CC} == "gcc" COPTS.pam_lastlog.c+= ${GCC_NO_STRINGOP_TRUNCATION}
COPTS.pam_lastlog.c += -Wno-stringop-truncation
.endif

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.5 2014/11/09 17:39:37 pooka Exp $ # $NetBSD: Makefile,v 1.6 2019/10/13 07:28:10 mrg Exp $
# #
RUMPTOP= ${.CURDIR}/../../sys/rump RUMPTOP= ${.CURDIR}/../../sys/rump
@ -7,4 +7,9 @@ LIBDPLIBS+= rumpuser ${.CURDIR}/../librumpuser
WARNS= 3 # XXX: kernel isn't ready for -Wsign-compare WARNS= 3 # XXX: kernel isn't ready for -Wsign-compare
COPTS.kern_hook.c+= ${GCC_NO_CAST_FUNCTION_TYPE}
COPTS.rump.c+= ${GCC_NO_CAST_FUNCTION_TYPE}
COPTS.subr_pool.c+= ${GCC_NO_CAST_FUNCTION_TYPE}
COPTS.subr_vmem.c+= ${GCC_NO_CAST_FUNCTION_TYPE}
.include "${RUMPTOP}/librump/rumpkern/Makefile.rumpkern" .include "${RUMPTOP}/librump/rumpkern/Makefile.rumpkern"

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.14 2017/05/11 04:33:14 sevan Exp $ # $NetBSD: Makefile,v 1.15 2019/10/13 07:28:11 mrg Exp $
# #
.PATH: ${.CURDIR}/../../sys/rump/librump/rumpkern .PATH: ${.CURDIR}/../../sys/rump/librump/rumpkern
@ -33,4 +33,6 @@ COPTS.rump_syscalls.c+= -fno-strict-aliasing
@ln -s ${NETBSDSRCDIR}/sys/sys srcsys @ln -s ${NETBSDSRCDIR}/sys/sys srcsys
.endif .endif
COPTS.rumpclient.c+= ${GCC_NO_CAST_FUNCTION_TYPE}
.include <bsd.lib.mk> .include <bsd.lib.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.1 2017/10/10 19:28:33 christos Exp $ # $NetBSD: Makefile,v 1.2 2019/10/13 07:28:11 mrg Exp $
USE_FORT?= yes USE_FORT?= yes
USE_SHLIBDIR= yes USE_SHLIBDIR= yes
@ -22,4 +22,6 @@ SRCS+= if_indextoname.c if_nametoindex.c
#SRCS+= gethnamaddr.c sethostent.c #SRCS+= gethnamaddr.c sethostent.c
CPPFLAGS+= -DRUMP_ACTION CPPFLAGS+= -DRUMP_ACTION
COPTS.getaddrinfo.c+= ${GCC_NO_STRINGOP_OVERFLOW}
.include <bsd.lib.mk> .include <bsd.lib.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.27 2017/05/11 04:33:14 sevan Exp $ # $NetBSD: Makefile,v 1.28 2019/10/13 07:28:11 mrg Exp $
# #
.include <bsd.own.mk> .include <bsd.own.mk>
@ -54,4 +54,6 @@ INCS= rumpuser_component.h rumpuser_port.h
CPPFLAGS+= -D_REENTRANT CPPFLAGS+= -D_REENTRANT
COPTS.rumpuser_sp.c+= ${GCC_NO_CAST_FUNCTION_TYPE}
.include <bsd.lib.mk> .include <bsd.lib.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.84 2019/10/08 18:50:34 christos Exp $ # $NetBSD: Makefile,v 1.85 2019/10/13 07:28:11 mrg Exp $
# @(#)Makefile 8.1 (Berkeley) 6/4/93 # @(#)Makefile 8.1 (Berkeley) 6/4/93
USE_SHLIBDIR= yes USE_SHLIBDIR= yes
@ -39,10 +39,8 @@ CPPFLAGS.sockaddr_snprintf.c+=-DHAVE_UTIL_H
CPPFLAGS.sockaddr_snprintf.c+=-DHAVE_NETATALK_AT_H CPPFLAGS.sockaddr_snprintf.c+=-DHAVE_NETATALK_AT_H
CPPFLAGS.sockaddr_snprintf.c+=-DHAVE_NET_IF_DL_H CPPFLAGS.sockaddr_snprintf.c+=-DHAVE_NET_IF_DL_H
.if ${ACTIVE_CC} == "gcc" COPTS.logwtmp.c+= ${GCC_NO_STRINGOP_TRUNCATION}
COPTS.logwtmp.c += -Wno-stringop-truncation COPTS.logwtmpx.c+= ${GCC_NO_STRINGOP_TRUNCATION}
COPTS.logwtmpx.c += -Wno-stringop-truncation
.endif
YPREFIX=__pd YPREFIX=__pd
.PATH: ${NETBSDSRCDIR}/lib/libc/gen .PATH: ${NETBSDSRCDIR}/lib/libc/gen

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.65 2018/02/25 00:16:48 mrg Exp $ # $NetBSD: Makefile,v 1.66 2019/10/13 07:28:11 mrg Exp $
# @(#)Makefile 8.2 (Berkeley) 4/4/94 # @(#)Makefile 8.2 (Berkeley) 4/4/94
.include <bsd.own.mk> .include <bsd.own.mk>
@ -52,4 +52,7 @@ ftpd.o ftpcmd.o: version.h
# #
#.endif #.endif
COPTS.ftpd.c+= ${GCC_NO_STRINGOP_TRUNCATION} ${GCC_NO_FORMAT_TRUNCATION}
COPTS.logwtmp.c+= ${GCC_NO_STRINGOP_TRUNCATION}
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.9 2012/02/01 17:53:01 dholland Exp $ # $NetBSD: Makefile,v 1.10 2019/10/13 07:28:11 mrg Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
PROG = rpc.rquotad PROG = rpc.rquotad
@ -9,4 +9,6 @@ MLINKS = rpc.rquotad.8 rquotad.8
DPADD= ${LIBQUOTA} ${LIBRPCSVC} DPADD= ${LIBQUOTA} ${LIBRPCSVC}
LDADD= -lquota -lrpcsvc LDADD= -lquota -lrpcsvc
COPTS.rquotad.c+= ${GCC_NO_CAST_FUNCTION_TYPE}
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.22 2016/01/23 21:22:47 christos Exp $ # $NetBSD: Makefile,v 1.23 2019/10/13 07:28:11 mrg Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
@ -13,4 +13,6 @@ MLINKS= rpc.rstatd.8 rstatd.8
DPADD= ${LIBRPCSVC} DPADD= ${LIBRPCSVC}
LDADD= -lrpcsvc LDADD= -lrpcsvc
COPTS.rstat_proc.c+= ${GCC_NO_CAST_FUNCTION_TYPE}
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.19 2018/02/28 23:45:56 snj Exp $ # $NetBSD: Makefile,v 1.20 2019/10/13 07:28:11 mrg Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
@ -15,5 +15,6 @@ CPPFLAGS+=-I${NETBSDSRCDIR}/usr.bin/who -DSUPPORT_UTMPX -DSUPPORT_UTMP
DPADD+= ${LIBRPCSVC} DPADD+= ${LIBRPCSVC}
LDADD+= -lrpcsvc LDADD+= -lrpcsvc
.include <bsd.prog.mk> COPTS.rusers_proc.c+= ${GCC_NO_STRINGOP_TRUNCATION} ${GCC_NO_STRINGOP_OVERFLOW} ${GCC_NO_CAST_FUNCTION_TYPE}
.include <bsd.prog.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.10 1997/10/08 09:07:33 mrg Exp $ # $NetBSD: Makefile,v 1.11 2019/10/13 07:28:11 mrg Exp $
PROG = rpc.rwalld PROG = rpc.rwalld
SRCS = rwalld.c SRCS = rwalld.c
@ -8,4 +8,6 @@ MLINKS= rpc.rwalld.8 rwalld.8
DPADD= ${LIBRPCSVC} DPADD= ${LIBRPCSVC}
LDADD= -lrpcsvc LDADD= -lrpcsvc
COPTS.rwalld.c+= ${GCC_NO_CAST_FUNCTION_TYPE}
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.6 1997/10/08 09:07:35 mrg Exp $ # $NetBSD: Makefile,v 1.7 2019/10/13 07:28:12 mrg Exp $
PROG = rpc.sprayd PROG = rpc.sprayd
SRCS = sprayd.c SRCS = sprayd.c
@ -8,5 +8,6 @@ MLINKS= rpc.sprayd.8 sprayd.8
DPADD= ${LIBRPCSVC} DPADD= ${LIBRPCSVC}
LDADD= -lrpcsvc LDADD= -lrpcsvc
.include <bsd.prog.mk> COPTS.sprayd.c+= ${GCC_NO_STRINGOP_TRUNCATION} ${GCC_NO_CAST_FUNCTION_TYPE}
.include <bsd.prog.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.73 2018/01/24 09:04:42 skrll Exp $ # $NetBSD: Makefile,v 1.74 2019/10/13 07:28:12 mrg Exp $
# @(#)Makefile 8.2 (Berkeley) 3/17/94 # @(#)Makefile 8.2 (Berkeley) 3/17/94
PROG= disklabel PROG= disklabel
@ -30,4 +30,7 @@ CPPFLAGS+= -DALPHA_BOOTBLOCK_CKSUM
CPPFLAGS+= -DVAX_ALTLABELS CPPFLAGS+= -DVAX_ALTLABELS
.endif .endif
COPTS.main.c+= ${GCC_NO_STRINGOP_TRUNCATION}
COPTS.interact.c+= ${GCC_NO_STRINGOP_TRUNCATION}
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.39 2012/08/10 12:20:11 joerg Exp $ # $NetBSD: Makefile,v 1.40 2019/10/13 07:28:12 mrg Exp $
# @(#)Makefile 8.1 (Berkeley) 6/5/93 # @(#)Makefile 8.1 (Berkeley) 6/5/93
# dump.h header file # dump.h header file
@ -38,5 +38,6 @@ LDADD+= -lutil
.PATH: ${NETBSDSRCDIR}/sys/ufs/ffs .PATH: ${NETBSDSRCDIR}/sys/ufs/ffs
COPTS.ffs_inode.c+= -Wno-pointer-sign COPTS.ffs_inode.c+= -Wno-pointer-sign
COPTS.traverse.c+= ${GCC_NO_FORMAT_TRUNCATION}
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.16 2013/06/15 12:29:02 christos Exp $ # $NetBSD: Makefile,v 1.17 2019/10/13 07:28:12 mrg Exp $
# @(#)Makefile 8.1 (Berkeley) 6/5/93 # @(#)Makefile 8.1 (Berkeley) 6/5/93
# lfs_inode.c LFS filestore-specific routines # lfs_inode.c LFS filestore-specific routines
@ -30,4 +30,6 @@ COPTS.lfs_inode.c+= -fno-tree-ter
.PATH: ${NETBSDSRCDIR}/sbin/dump ${NETBSDSRCDIR}/sys/ufs/lfs \ .PATH: ${NETBSDSRCDIR}/sbin/dump ${NETBSDSRCDIR}/sys/ufs/lfs \
${NETBSDSRCDIR}/sys/ufs/ffs ${NETBSDSRCDIR}/sys/ufs/ffs
COPTS.traverse.c+= ${GCC_NO_FORMAT_TRUNCATION}
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.42 2012/05/05 16:03:55 tsutsui Exp $ # $NetBSD: Makefile,v 1.43 2019/10/13 07:28:12 mrg Exp $
PROG= fdisk PROG= fdisk
SRCS= fdisk.c SRCS= fdisk.c
@ -20,6 +20,8 @@ CPPFLAGS+= -D_PATH_DEFDISK='"/dev/rsd0d"'
CPPFLAGS+= -D_PATH_DEFDISK='"/dev/rwd0c"' CPPFLAGS+= -D_PATH_DEFDISK='"/dev/rwd0c"'
.endif .endif
COPTS.fdisk.c+= ${GCC_NO_STRINGOP_TRUNCATION}
.include <bsd.prog.mk> .include <bsd.prog.mk>
.if (${HOSTPROG:U} == "") .if (${HOSTPROG:U} == "")

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.39 2013/07/15 00:18:03 khorben Exp $ # $NetBSD: Makefile,v 1.40 2019/10/13 07:28:12 mrg Exp $
# @(#)Makefile 8.1 (Berkeley) 7/19/93 # @(#)Makefile 8.1 (Berkeley) 7/19/93
PROG= init PROG= init
@ -17,4 +17,6 @@ DPADD+= ${LIBCRYPT}
LDADD+= -lcrypt LDADD+= -lcrypt
.endif .endif
COPTS.init.c+= ${GCC_NO_FORMAT_TRUNCATION} ${GCC_NO_STRINGOP_TRUNCATION} ${GCC_NO_CAST_FUNCTION_TYPE}
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -13,4 +13,7 @@ CPPFLAGS+= -I${.CURDIR}/../iscsid
MAN= iscsictl.8 MAN= iscsictl.8
COPTS.iscsic_main.c+= ${GCC_NO_FORMAT_TRUNCATION}
COPTS.iscsic_driverif.c+= ${GCC_NO_FORMAT_TRUNCATION}
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,8 +1,10 @@
# $NetBSD: Makefile,v 1.4 2018/09/23 07:24:19 maxv Exp $ # $NetBSD: Makefile,v 1.5 2019/10/13 07:28:12 mrg Exp $
PROG= pppoectl PROG= pppoectl
MAN= pppoectl.8 MAN= pppoectl.8
USE_FORT?= yes # network client USE_FORT?= yes # network client
COPTS.pppoectl.c+= ${GCC_NO_STRINGOP_TRUNCATION}
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.16 2010/12/15 18:37:55 pooka Exp $ # $NetBSD: Makefile,v 1.17 2019/10/13 07:28:12 mrg Exp $
RUMPPRG=raidctl RUMPPRG=raidctl
SRCS= rf_configure.c raidctl.c SRCS= rf_configure.c raidctl.c
@ -7,4 +7,6 @@ MAN= raidctl.8
DPADD= ${LIBUTIL} DPADD= ${LIBUTIL}
LDADD= -lutil LDADD= -lutil
COPTS.raidctl.c+= ${GCC_NO_STRINGOP_TRUNCATION}
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.26 2011/08/06 20:46:42 dholland Exp $ # $NetBSD: Makefile,v 1.27 2019/10/13 07:28:13 mrg Exp $
# @(#)Makefile 8.1 (Berkeley) 6/5/93 # @(#)Makefile 8.1 (Berkeley) 6/5/93
.include <bsd.own.mk> .include <bsd.own.mk>
@ -12,4 +12,7 @@ MAN= restore.8
MLINKS+=restore.8 rrestore.8 MLINKS+=restore.8 rrestore.8
.PATH: ${NETBSDSRCDIR}/sbin/dump .PATH: ${NETBSDSRCDIR}/sbin/dump
COPTS.interactive.c+= ${GCC_NO_STRINGOP_TRUNCATION}
COPTS.dirs.c+= ${GCC_NO_STRINGOP_TRUNCATION}
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,6 +1,8 @@
# $NetBSD: Makefile,v 1.2 1997/10/13 14:16:16 mycroft Exp $ # $NetBSD: Makefile,v 1.3 2019/10/13 07:28:13 mrg Exp $
PROG= rndctl PROG= rndctl
MAN= rndctl.8 MAN= rndctl.8
COPTS.rndctl.c+= ${GCC_NO_STRINGOP_TRUNCATION}
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.31 2017/12/13 17:42:44 christos Exp $ # $NetBSD: Makefile,v 1.32 2019/10/13 07:28:13 mrg Exp $
# @(#)Makefile 8.1 (Berkeley) 6/5/93 # @(#)Makefile 8.1 (Berkeley) 6/5/93
.include <bsd.own.mk> .include <bsd.own.mk>
@ -29,4 +29,6 @@ DPADD+=${LIBUTIL}
# keywords.c keywords.h : keywords.sh # keywords.c keywords.h : keywords.sh
# ${HOST_SH} keywords.sh # ${HOST_SH} keywords.sh
COPTS.rtutil.c+= ${GCC_NO_FORMAT_TRUNCATION}
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.25 2011/08/25 16:12:37 joerg Exp $ # $NetBSD: Makefile,v 1.26 2019/10/13 07:28:13 mrg Exp $
# from: @(#)Makefile 8.1 (Berkeley) 6/19/93 # from: @(#)Makefile 8.1 (Berkeley) 6/19/93
USE_FORT?= yes # network client/server USE_FORT?= yes # network client/server
@ -17,5 +17,7 @@ MLINKS= routed.8 rdisc.8
COPTS.main.c = -Wno-format-nonliteral COPTS.main.c = -Wno-format-nonliteral
COPTS.trace.c = -Wno-format-nonliteral COPTS.trace.c = -Wno-format-nonliteral
COPTS.if.c+= ${GCC_NO_STRINGOP_TRUNCATION}
.include <bsd.prog.mk> .include <bsd.prog.mk>
.include <bsd.subdir.mk> .include <bsd.subdir.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.18 2013/07/01 15:16:33 christos Exp $ # $NetBSD: Makefile,v 1.19 2019/10/13 07:28:13 mrg Exp $
# @(#)Makefile 8.4 (Berkeley) 6/22/95 # @(#)Makefile 8.4 (Berkeley) 6/22/95
.include <bsd.own.mk> .include <bsd.own.mk>
@ -16,4 +16,6 @@ CPPFLAGS+= -I${MOUNT}
SRCS+= vfslist.c SRCS+= vfslist.c
.endif .endif
COPTS.umount.c+= ${GCC_NO_CAST_FUNCTION_TYPE}
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: bsd.own.mk,v 1.1154 2019/10/09 13:13:10 jhigh Exp $ # $NetBSD: bsd.own.mk,v 1.1155 2019/10/13 07:28:13 mrg Exp $
# This needs to be before bsd.init.mk # This needs to be before bsd.init.mk
.if defined(BSD_MK_COMPAT_FILE) .if defined(BSD_MK_COMPAT_FILE)
@ -805,6 +805,15 @@ NOPROFILE= # defined
.endif .endif
.endif .endif
#
# GCC warnings with simple disables. Use these with eg
# COPTS.foo.c+= ${GCC_NO_STRINGOP_TRUNCATION}.
#
GCC_NO_FORMAT_TRUNCATION= ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 7:? -Wno-format-truncation :}
GCC_NO_STRINGOP_TRUNCATION= ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 8:? -Wno-stringop-truncation :}
GCC_NO_STRINGOP_OVERFLOW= ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 8:? -Wno-stringop-overflow :}
GCC_NO_CAST_FUNCTION_TYPE= ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 8:? -Wno-cast-function-type :}
# #
# The ia64 port is incomplete. # The ia64 port is incomplete.
# #

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.4 2019/02/17 04:05:46 rin Exp $ # $NetBSD: Makefile,v 1.5 2019/10/13 07:28:13 mrg Exp $
.include "../Makefile.inc" .include "../Makefile.inc"
@ -25,4 +25,6 @@ SRCS+= core_machdep.c
WARNS= 3 WARNS= 3
COPTS.kern_core.c+= ${GCC_NO_CAST_FUNCTION_TYPE}
.include <bsd.kmodule.mk> .include <bsd.kmodule.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.2 2015/08/20 11:05:01 christos Exp $ # $NetBSD: Makefile,v 1.3 2019/10/13 07:28:13 mrg Exp $
.include "../Makefile.inc" .include "../Makefile.inc"
@ -9,4 +9,6 @@ IOCONF= filemon.ioconf
SRCS = filemon.c filemon_wrapper.c SRCS = filemon.c filemon_wrapper.c
NOMAN = no NOMAN = no
COPTS.filemon_wrapper.c+= ${GCC_NO_CAST_FUNCTION_TYPE}
.include <bsd.kmodule.mk> .include <bsd.kmodule.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.2 2019/02/17 04:05:56 rin Exp $ # $NetBSD: Makefile,v 1.3 2019/10/13 07:28:13 mrg Exp $
# #
.include "../Makefile.inc" .include "../Makefile.inc"
@ -11,4 +11,6 @@ SRCS= sys_ptrace_common.c
WARNS= 3 WARNS= 3
COPTS.sys_ptrace_common.c+= ${GCC_NO_CAST_FUNCTION_TYPE}
.include <bsd.kmodule.mk> .include <bsd.kmodule.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.rumpkern,v 1.176 2019/09/02 20:09:30 riastradh Exp $ # $NetBSD: Makefile.rumpkern,v 1.177 2019/10/13 07:28:14 mrg Exp $
# #
IOCONFDIR:= ${.PARSEDIR} IOCONFDIR:= ${.PARSEDIR}
@ -234,5 +234,11 @@ SRCS+= atomic_cas_generic.c
#SRCS+= rump_atomic_cas_up.c #SRCS+= rump_atomic_cas_up.c
.endif .endif
COPTS.if_ethersubr.c+= ${GCC_NO_CAST_FUNCTION_TYPE}
COPTS.kern_hook.c+= ${GCC_NO_CAST_FUNCTION_TYPE}
COPTS.subr_vmem.c+= ${GCC_NO_CAST_FUNCTION_TYPE}
COPTS.subr_pool.c+= ${GCC_NO_CAST_FUNCTION_TYPE}
COPTS.rump.c+= ${GCC_NO_CAST_FUNCTION_TYPE}
.include <bsd.lib.mk> .include <bsd.lib.mk>
.include <bsd.klinks.mk> .include <bsd.klinks.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.31 2018/12/12 01:40:20 rin Exp $ # $NetBSD: Makefile,v 1.32 2019/10/13 07:28:14 mrg Exp $
# #
@ -27,6 +27,8 @@ SRCS+= rtsock_50.c uipc_syscalls_50.c
SRCS+= rtsock_70.c uipc_usrreq_70.c SRCS+= rtsock_70.c uipc_usrreq_70.c
.endif .endif
COPTS.if_ethersubr.c+= ${GCC_NO_CAST_FUNCTION_TYPE}
.include "${.CURDIR}/../libnetinet/Makefile.inc" .include "${.CURDIR}/../libnetinet/Makefile.inc"
.include "${.CURDIR}/../libnetinet6/Makefile.inc" .include "${.CURDIR}/../libnetinet6/Makefile.inc"
.include "${.CURDIR}/../libnetmpls/Makefile.inc" .include "${.CURDIR}/../libnetmpls/Makefile.inc"

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.12 2014/03/04 21:06:47 joerg Exp $ # $NetBSD: Makefile,v 1.13 2019/10/13 07:28:14 mrg Exp $
# #
.include <bsd.own.mk> .include <bsd.own.mk>
@ -40,5 +40,11 @@ CPPFLAGS+= -DMOUNT_NOMAIN -DMOUNTNFS_RETRYRPC=1
CPPFLAGS+= -DUSE_RUMP -DLFS_CLEANER_AS_LIB CPPFLAGS+= -DUSE_RUMP -DLFS_CLEANER_AS_LIB
CWARNFLAGS.clang+= -Wno-error=absolute-value CWARNFLAGS.clang+= -Wno-error=absolute-value
COPTS.fstest_nfs.c+= ${GCC_NO_FORMAT_TRUNCATION}
COPTS.clnt_bcast.c+= ${GCC_NO_CAST_FUNCTION_TYPE}
COPTS.clnt_generic.c+= ${GCC_NO_CAST_FUNCTION_TYPE}
COPTS.clnt_vc.c+= ${GCC_NO_CAST_FUNCTION_TYPE}
COPTS.rpcb_clnt.c+= ${GCC_NO_CAST_FUNCTION_TYPE}
COPTS.rpc_generic.c+= ${GCC_NO_CAST_FUNCTION_TYPE}
.include <bsd.lib.mk> .include <bsd.lib.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.13 2019/08/15 08:23:45 kamil Exp $ # $NetBSD: Makefile,v 1.14 2019/10/13 07:28:14 mrg Exp $
# #
NOMAN= 1 NOMAN= 1
@ -50,4 +50,10 @@ DPADD+= ${LIBWRAP} ${LIBUTIL}
SANITIZER_RENAME_SYMBOL+= __getmntinfo13 SANITIZER_RENAME_SYMBOL+= __getmntinfo13
COPTS.pmap_svc.c+= ${GCC_NO_CAST_FUNCTION_TYPE}
COPTS.rpcb_svc.c+= ${GCC_NO_CAST_FUNCTION_TYPE}
COPTS.rpcb_svc_4.c+= ${GCC_NO_CAST_FUNCTION_TYPE}
COPTS.rpcb_svc_com.c+= ${GCC_NO_CAST_FUNCTION_TYPE}
COPTS.mountd.c+= ${GCC_NO_CAST_FUNCTION_TYPE}
.include <bsd.test.mk> .include <bsd.test.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.2 2013/02/26 17:06:55 christos Exp $ # $NetBSD: Makefile,v 1.3 2019/10/13 07:28:14 mrg Exp $
MKMAN= no MKMAN= no
@ -18,6 +18,8 @@ CPPFLAGS+= -I.
RPC_INCS= ${RPCSRCS:.x=.h} RPC_INCS= ${RPCSRCS:.x=.h}
RPC_XDRFILES= ${RPCSRCS:.x=_xdr.c} RPC_XDRFILES= ${RPCSRCS:.x=_xdr.c}
COPTS.t_rpc.c+= ${GCC_NO_CAST_FUNCTION_TYPE}
.include <bsd.rpc.mk> .include <bsd.rpc.mk>
.include <bsd.test.mk> .include <bsd.test.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.9 2019/09/29 23:45:01 mrg Exp $ # $NetBSD: Makefile,v 1.10 2019/10/13 07:28:14 mrg Exp $
NOMAN= # defined NOMAN= # defined
@ -48,9 +48,7 @@ PROGS+= h_strncpy
PROGS+= h_vsnprintf PROGS+= h_vsnprintf
PROGS+= h_vsprintf PROGS+= h_vsprintf
.if defined(HAVE_GCC) && ${HAVE_GCC} >= 7 && ${ACTIVE_CC} == "gcc"
# Test exercises truncation # Test exercises truncation
COPTS.h_snprintf.c+= -Wno-error=format-truncation COPTS.h_snprintf.c+= ${GCC_NO_FORMAT_TRUNCATION}
.endif
.include <bsd.test.mk> .include <bsd.test.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.4 2017/05/21 15:28:42 riastradh Exp $ # $NetBSD: Makefile,v 1.5 2019/10/13 07:28:14 mrg Exp $
TESTSDIR= ${TESTSBASE}/lib/libevent TESTSDIR= ${TESTSBASE}/lib/libevent
@ -26,4 +26,6 @@ CPPFLAGS+= -DLIBEVENT_CRYPTO
DPADD+= ${LIBEVENT} ${LIBEVENT_PTHREADS} ${LIBZ} ${LIBPTHREAD} DPADD+= ${LIBEVENT} ${LIBEVENT_PTHREADS} ${LIBZ} ${LIBPTHREAD}
LDADD+= -levent_pthreads -levent -lz -lpthread LDADD+= -levent_pthreads -levent -lz -lpthread
COPTS.regress_rpc.c+= ${GCC_NO_CAST_FUNCTION_TYPE}
.include <bsd.test.mk> .include <bsd.test.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.2 2006/09/26 19:18:19 plunky Exp $ # $NetBSD: Makefile,v 1.3 2019/10/13 07:28:14 mrg Exp $
PROG= btpin PROG= btpin
SRCS= btpin.c SRCS= btpin.c
@ -7,4 +7,6 @@ MAN= btpin.1
DPADD+= ${LIBBLUETOOTH} DPADD+= ${LIBBLUETOOTH}
LDADD+= -lbluetooth LDADD+= -lbluetooth
COPTS.btpin.c+= ${GCC_NO_STRINGOP_TRUNCATION}
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.10 2014/10/29 19:10:49 christos Exp $ # $NetBSD: Makefile,v 1.11 2019/10/13 07:28:14 mrg Exp $
# from: @(#)Makefile 8.2 (Berkeley) 4/19/94 # from: @(#)Makefile 8.2 (Berkeley) 4/19/94
.include <bsd.own.mk> .include <bsd.own.mk>
@ -20,6 +20,8 @@ CPPFLAGS+= -I${NETBSDSRCDIR}/usr.bin/cksum
.ifndef HOSTPROG .ifndef HOSTPROG
LDADD+=-lutil LDADD+=-lutil
DPADD+=${LIBUTIL} DPADD+=${LIBUTIL}
COPTS.mkheaders.c+= ${GCC_NO_FORMAT_TRUNCATION}
COPTS.sem.c+= ${GCC_NO_FORMAT_TRUNCATION}
.endif .endif
CWARNFLAGS+=-Wno-format-y2k CWARNFLAGS+=-Wno-format-y2k

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.15 2006/08/29 12:50:49 christos Exp $ # $NetBSD: Makefile,v 1.16 2019/10/13 07:28:15 mrg Exp $
PROG= crunchgen PROG= crunchgen
SRCS= crunchgen.c crunched_skel.c SRCS= crunchgen.c crunched_skel.c
@ -21,6 +21,8 @@ DPADD+=${LIBUTIL}
CPPFLAGS+= -DNEW_TOOLCHAIN CPPFLAGS+= -DNEW_TOOLCHAIN
.endif .endif
COPTS.crunchgen.c+= ${GCC_NO_FORMAT_TRUNCATION}
.else .else
# Host tool -- We can also pay attention to EXTERNAL_TOOLCHAIN. # Host tool -- We can also pay attention to EXTERNAL_TOOLCHAIN.

View File

@ -1,6 +1,8 @@
# $NetBSD: Makefile,v 1.3 2019/03/09 16:18:37 christos Exp $ # $NetBSD: Makefile,v 1.4 2019/10/13 07:28:15 mrg Exp $
WARNS=6 WARNS=6
PROG= cvslatest PROG= cvslatest
COPTS.cvslatest.c+= ${GCC_NO_FORMAT_TRUNCATION}
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.25 2016/12/23 10:19:57 mrg Exp $ # $NetBSD: Makefile,v 1.26 2019/10/13 07:28:15 mrg Exp $
# from: @(#)Makefile 8.1 (Berkeley) 6/6/93 # from: @(#)Makefile 8.1 (Berkeley) 6/6/93
.include <bsd.own.mk> .include <bsd.own.mk>
@ -23,4 +23,6 @@ DPADD+=${LIBUTIL}
.include "../../compat/exec.mk" .include "../../compat/exec.mk"
COPTS.fstat.c+= ${GCC_NO_FORMAT_TRUNCATION}
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.14 2011/08/14 13:45:34 christos Exp $ # $NetBSD: Makefile,v 1.15 2019/10/13 07:28:15 mrg Exp $
# from: @(#)Makefile 8.1 (Berkeley) 6/6/93 # from: @(#)Makefile 8.1 (Berkeley) 6/6/93
PROG= hexdump PROG= hexdump
@ -15,4 +15,6 @@ LINKS= ${BINDIR}/hexdump ${BINDIR}/od
COPTS.conv.c += -Wno-format-nonliteral COPTS.conv.c += -Wno-format-nonliteral
COPTS.display.c += -Wno-format-nonliteral COPTS.display.c += -Wno-format-nonliteral
COPTS.parse.c+= ${GCC_NO_STRINGOP_TRUNCATION}
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.57 2018/02/25 00:16:49 mrg Exp $ # $NetBSD: Makefile,v 1.58 2019/10/13 07:28:15 mrg Exp $
# @(#)Makefile 8.1 (Berkeley) 7/19/93 # @(#)Makefile 8.1 (Berkeley) 7/19/93
.include <bsd.own.mk> .include <bsd.own.mk>
@ -45,5 +45,7 @@ copyrightstr.c: ${NETBSDSRCDIR}/sys/conf/copyright
END { print "\"\\n\";" }\ END { print "\"\\n\";" }\
' ${.ALLSRC} > ${.TARGET} ' ${.ALLSRC} > ${.TARGET}
COPTS.parse.c+= ${GCC_NO_STRINGOP_TRUNCATION}
COPTS.common.c+= ${GCC_NO_STRINGOP_TRUNCATION}
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.38 2018/06/10 17:55:11 christos Exp $ # $NetBSD: Makefile,v 1.39 2019/10/13 07:28:15 mrg Exp $
# @(#)Makefile 8.3 (Berkeley) 4/20/95 # @(#)Makefile 8.3 (Berkeley) 4/20/95
.include <bsd.own.mk> .include <bsd.own.mk>
@ -76,7 +76,8 @@ SUBDIR.roff+= USD.doc
CONFIGFILES= mail.rc CONFIGFILES= mail.rc
FILESDIR_mail.rc= /etc FILESDIR_mail.rc= /etc
COPTS.format.c += -Wno-format-nonliteral COPTS.format.c+= -Wno-format-nonliteral
COPTS.fio.c+= ${GCC_NO_FORMAT_TRUNCATION}
.include <bsd.prog.mk> .include <bsd.prog.mk>
.include <bsd.subdir.mk> .include <bsd.subdir.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.62 2019/09/29 23:45:01 mrg Exp $ # $NetBSD: Makefile,v 1.63 2019/10/13 07:28:15 mrg Exp $
# @(#)Makefile 5.2 (Berkeley) 12/28/90 # @(#)Makefile 5.2 (Berkeley) 12/28/90
PROG= make PROG= make
@ -46,9 +46,11 @@ LDADD+=-lutil
DPADD+=${LIBUTIL} DPADD+=${LIBUTIL}
.endif .endif
.if defined(HAVE_GCC) && ${HAVE_GCC} >= 7 && ${ACTIVE_CC} == "gcc" COPTS.arch.c+= ${GCC_NO_FORMAT_TRUNCATION}
COPTS.arch.c += -Wno-error=format-truncation COPTS.dir.c+= ${GCC_NO_FORMAT_TRUNCATION}
.endif COPTS.main.c+= ${GCC_NO_FORMAT_TRUNCATION} ${GCC_NO_STRINGOP_TRUNCATION}
COPTS.meta.c+= ${GCC_NO_FORMAT_TRUNCATION}
COPTS.parse.c+= ${GCC_NO_FORMAT_TRUNCATION}
# A simple unit-test driver to help catch regressions # A simple unit-test driver to help catch regressions
accept test: accept test:

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.15 2014/02/17 03:10:12 uwe Exp $ # $NetBSD: Makefile,v 1.16 2019/10/13 07:28:15 mrg Exp $
# @(#)Makefile 8.1 (Berkeley) 6/6/93 # @(#)Makefile 8.1 (Berkeley) 6/6/93
WARNS?= 6 WARNS?= 6
@ -10,4 +10,6 @@ MAN= man.1 man.conf.5
DPADD+= ${LIBUTIL} DPADD+= ${LIBUTIL}
LDADD+= -lutil LDADD+= -lutil
COPTS.man.c+= ${GCC_NO_FORMAT_TRUNCATION}
.include <bsd.prog.mk> .include <bsd.prog.mk>

Some files were not shown because too many files have changed in this diff Show More