Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/ypserv/makedbm usr.sbin/ypserv: Suppress -Werror=fo...



details:   https://anonhg.NetBSD.org/src/rev/d1fe8df50d80
branches:  trunk
changeset: 1007189:d1fe8df50d80
user:      fox <fox%NetBSD.org@localhost>
date:      Sun Feb 09 15:52:48 2020 +0000

description:
usr.sbin/ypserv: Suppress -Werror=format-truncation= error.

Add GCC_NO_FORMAT_TRUNCATION makedbm.c to prevent build failure.

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

Reviewed by: kamil@

diffstat:

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

diffs (13 lines):

diff -r 9915a3c4ef41 -r d1fe8df50d80 usr.sbin/ypserv/makedbm/Makefile
--- a/usr.sbin/ypserv/makedbm/Makefile  Sun Feb 09 15:46:15 2020 +0000
+++ b/usr.sbin/ypserv/makedbm/Makefile  Sun Feb 09 15:52:48 2020 +0000
@@ -1,6 +1,8 @@
-#      $NetBSD: Makefile,v 1.5 1997/10/02 14:16:19 lukem Exp $
+#      $NetBSD: Makefile,v 1.6 2020/02/09 15:52:48 fox Exp $
 
 PROG=  makedbm
 MAN=   makedbm.8
 
+CWARNFLAGS+=   ${GCC_NO_FORMAT_TRUNCATION}
+
 .include <bsd.prog.mk>



Home | Main Index | Thread Index | Old Index