Module Name:    src
Committed By:   fox
Date:           Sat Feb  8 13:20:10 UTC 2020

Modified Files:
        src/external/bsd/ntp/bin/ntpd: Makefile

Log Message:
external/bsd/ntp: Suppress -Werror=stringop-truncation error.

Add GCC_NO_STRINGOP_TRUNCATION to refclock_jjy.c to prevent build failure.

Error was reported when build.sh was run with MKLIBCSANITIZER=yes flag.

Reviewed by: kamil@


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 src/external/bsd/ntp/bin/ntpd/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/bsd/ntp/bin/ntpd/Makefile
diff -u src/external/bsd/ntp/bin/ntpd/Makefile:1.24 src/external/bsd/ntp/bin/ntpd/Makefile:1.25
--- src/external/bsd/ntp/bin/ntpd/Makefile:1.24	Sun Oct 13 07:28:07 2019
+++ src/external/bsd/ntp/bin/ntpd/Makefile	Sat Feb  8 13:20:10 2020
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.24 2019/10/13 07:28:07 mrg Exp $
+#	$NetBSD: Makefile,v 1.25 2020/02/08 13:20:10 fox Exp $
 
 .include <bsd.own.mk>
 
@@ -95,6 +95,7 @@ COPTS.ntp_control.c+=  -Wno-error=maybe-
 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_jjy.c+=		${GCC_NO_STRINGOP_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}

Reply via email to