Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/mpl/dhcp/bin/server external/mpl/dhcp: Suppress -We...
details: https://anonhg.NetBSD.org/src/rev/918ad53239f4
branches: trunk
changeset: 1010818:918ad53239f4
user: fox <fox%NetBSD.org@localhost>
date: Sun Jun 07 23:29:16 2020 +0000
description:
external/mpl/dhcp: Suppress -Werror=stringop-truncation error
This logic correctly uses strncpy(3) to fully initialize a fixed-width field, and also ensures
NUL-termination on the next line as other users of the field expect.
Add -Werror=stringop-truncation to prevent build failure, when run with MKSANITIZER=yes.
Error was reported when build.sh was run with MKSANITIZER=yes flag.
Reviewed by: kamil@
diffstat:
external/mpl/dhcp/bin/server/Makefile | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (16 lines):
diff -r 59efa71582f2 -r 918ad53239f4 external/mpl/dhcp/bin/server/Makefile
--- a/external/mpl/dhcp/bin/server/Makefile Sun Jun 07 23:26:54 2020 +0000
+++ b/external/mpl/dhcp/bin/server/Makefile Sun Jun 07 23:29:16 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2020/05/23 00:32:42 rin Exp $
+# $NetBSD: Makefile,v 1.6 2020/06/07 23:29:16 fox Exp $
.include <bsd.own.mk>
@@ -21,5 +21,6 @@
COPTS.mdb6.c += ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} == 8:? -Wno-error=format-overflow :}
COPTS.omapi.c += -Wno-stack-protector
+COPTS.confpars.c+= ${GCC_NO_STRINGOP_TRUNCATION}
.include <bsd.prog.mk>
Home |
Main Index |
Thread Index |
Old Index