adapt to ${CC_WNO_FORMAT_TRUNCATION}
This commit is contained in:
parent
39588391d2
commit
1a214827c2
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.71 2023/04/21 21:50:05 gutteridge Exp $
|
||||
# $NetBSD: Makefile,v 1.72 2023/06/03 21:28:52 lukem Exp $
|
||||
|
||||
NOMAN= # defined
|
||||
|
||||
|
@ -82,10 +82,8 @@ t_subr_prf.c: gen_t_subr_prf ${NETBSDSRCDIR}/sys/kern/subr_prf.c
|
|||
|
||||
CPPFLAGS.t_subr_prf.c= -Wno-pointer-sign # XXX platform vs kernel SHA2
|
||||
|
||||
.if defined(HAVE_GCC) && ${HAVE_GCC} >= 7 && ${ACTIVE_CC} == "gcc"
|
||||
# Test explicitly tests failure modes.
|
||||
CPPFLAGS.t_subr_prf.c+= -Wno-error=format-truncation
|
||||
.endif
|
||||
CPPFLAGS.t_subr_prf.c+= ${CC_WNO_FORMAT_TRUNCATION}
|
||||
|
||||
SANITIZER_RENAME_CLASSES+= t_subr_prf
|
||||
SANITIZER_RENAME_FILES.t_subr_prf+= t_subr_prf.c
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.20 2019/09/29 23:45:01 mrg Exp $
|
||||
# $NetBSD: Makefile,v 1.21 2023/06/03 21:28:53 lukem Exp $
|
||||
|
||||
PROG= newsyslog
|
||||
SRCS= newsyslog.c
|
||||
|
@ -8,8 +8,6 @@ MLINKS+=newsyslog.8 newsyslog.conf.5
|
|||
|
||||
.include <bsd.own.mk>
|
||||
|
||||
.if defined(HAVE_GCC) && ${HAVE_GCC} >= 7 && ${ACTIVE_CC} == "gcc"
|
||||
COPTS.newsyslog.c += -Wno-error=format-truncation
|
||||
.endif
|
||||
COPTS.newsyslog.c += ${CC_WNO_FORMAT_TRUNCATION}
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
|
Loading…
Reference in New Issue