Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/atf/lib/libatf-c external/bsd/atf: Suppress -We...
details: https://anonhg.NetBSD.org/src/rev/4ecf85cddbd7
branches: trunk
changeset: 934234:4ecf85cddbd7
user: fox <fox%NetBSD.org@localhost>
date: Sun Jun 07 23:09:34 2020 +0000
description:
external/bsd/atf: 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/bsd/atf/lib/libatf-c/Makefile | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (17 lines):
diff -r de25bf349381 -r 4ecf85cddbd7 external/bsd/atf/lib/libatf-c/Makefile
--- a/external/bsd/atf/lib/libatf-c/Makefile Sun Jun 07 19:35:15 2020 +0000
+++ b/external/bsd/atf/lib/libatf-c/Makefile Sun Jun 07 23:09:34 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.22 2020/01/29 22:40:44 christos Exp $
+# $NetBSD: Makefile,v 1.23 2020/06/07 23:09:34 fox Exp $
NOLINT= # defined
@@ -54,6 +54,7 @@
MAN= atf-c-api.3
COPTS.tc.c+= ${${ACTIVE_CC} == "clang" && ${MACHINE_ARCH} == "powerpc":? -O0 :}
+COPTS.fs.c+= ${GCC_NO_STRINGOP_TRUNCATION}
.if ${MKSHARE} != "no"
FILES+= atf-c.pc
Home |
Main Index |
Thread Index |
Old Index