Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/ntp/bin/ntpd external/bsd/ntp: Suppress -Werror...



details:   https://anonhg.NetBSD.org/src/rev/b3720fc84bff
branches:  trunk
changeset: 744633:b3720fc84bff
user:      fox <fox%NetBSD.org@localhost>
date:      Sat Feb 08 13:20:10 2020 +0000

description:
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@

diffstat:

 external/bsd/ntp/bin/ntpd/Makefile |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r f1bceba3160b -r b3720fc84bff external/bsd/ntp/bin/ntpd/Makefile
--- a/external/bsd/ntp/bin/ntpd/Makefile        Sat Feb 08 12:56:56 2020 +0000
+++ b/external/bsd/ntp/bin/ntpd/Makefile        Sat Feb 08 13:20:10 2020 +0000
@@ -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_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}



Home | Main Index | Thread Index | Old Index