Source-Changes-HG archive

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

[src/trunk]: src/external/bsd/mdocml/bin/mandoc man_term.c needs -Wno-error=a...



details:   https://anonhg.NetBSD.org/src/rev/1ec3fd0140c6
branches:  trunk
changeset: 365455:1ec3fd0140c6
user:      kre <kre%NetBSD.org@localhost>
date:      Thu Aug 16 03:59:52 2018 +0000

description:
man_term.c needs -Wno-error=array-bounds for the exact same reason
as libmandoc/mandoc-validate.c

And as we do not have recallocarray() in libc, we need the compat
source file for the full build, as well as for tools builds.

diffstat:

 external/bsd/mdocml/bin/mandoc/Makefile |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (25 lines):

diff -r e4a3e74f8ab9 -r 1ec3fd0140c6 external/bsd/mdocml/bin/mandoc/Makefile
--- a/external/bsd/mdocml/bin/mandoc/Makefile   Thu Aug 16 01:08:18 2018 +0000
+++ b/external/bsd/mdocml/bin/mandoc/Makefile   Thu Aug 16 03:59:52 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 2018/08/15 08:19:18 mrg Exp $
+# $NetBSD: Makefile,v 1.15 2018/08/16 03:59:52 kre Exp $
 
 .include <bsd.own.mk>
 
@@ -31,10 +31,14 @@
 DPADD+=        ${MDOCMLLIB.mandoc} ${LIBZ}
 LDADD+=        -L${MDOCMLOBJDIR.mandoc} -lmandoc -lz
 CPPFLAGS+=     -DUSE_WCHAR
+SRCS+=         compat_recallocarray.c
 .else
 SRCS.libmandoc!=cd ${.PARSEDIR}/../../lib/libmandoc && ${MAKE} -v SRCS
 
-SRCS+=         ${SRCS.libmandoc} compat_strtonum.c compat_reallocarray.c compat_recallocarray.c
+SRCS+=         ${SRCS.libmandoc} compat_strtonum.c compat_reallocarray.c \
+               compat_recallocarray.c
 .endif
 
+COPTS.man_term.c+= -Wno-error=array-bounds
+
 .include <bsd.prog.mk>



Home | Main Index | Thread Index | Old Index