Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/timed/timed usr.sbin/timed: Suppress -Werror=string...



details:   https://anonhg.NetBSD.org/src/rev/a3dc6051aca3
branches:  trunk
changeset: 744657:a3dc6051aca3
user:      fox <fox%NetBSD.org@localhost>
date:      Sun Feb 09 15:13:28 2020 +0000

description:
usr.sbin/timed: Suppress -Werror=stringop-truncation error.

Add GCC_NO_STRINGOP_TRUNCATION master.c to prevent build failure.

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

Reviewed by: kamil@

diffstat:

 usr.sbin/timed/timed/Makefile |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (16 lines):

diff -r f99ecf3cf5b0 -r a3dc6051aca3 usr.sbin/timed/timed/Makefile
--- a/usr.sbin/timed/timed/Makefile     Sun Feb 09 15:10:31 2020 +0000
+++ b/usr.sbin/timed/timed/Makefile     Sun Feb 09 15:13:28 2020 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.13 2019/11/11 22:45:32 joerg Exp $
+#      $NetBSD: Makefile,v 1.14 2020/02/09 15:13:28 fox Exp $
 #      @(#)Makefile    8.1 (Berkeley) 6/6/93
 #
 # optional flags are: MEASURE TESTING DEBUG
@@ -13,4 +13,6 @@
 
 CWARNFLAGS.clang+=     -Wno-error=implicit-int-float-conversion
 
+COPTS.master.c+=       ${GCC_NO_STRINGOP_TRUNCATION}
+
 .include <bsd.prog.mk>



Home | Main Index | Thread Index | Old Index