Source-Changes-HG archive

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

[src/trunk]: src/external/bsd/mdocml/lib/libmandoc mandoc-validate.c cannot d...



details:   https://anonhg.NetBSD.org/src/rev/a67d53268e03
branches:  trunk
changeset: 363922:a67d53268e03
user:      kre <kre%NetBSD.org@localhost>
date:      Thu Aug 16 01:08:18 2018 +0000

description:
mandoc-validate.c cannot deal with -Werror=array-bounds so disable it.
The code could probably be redone to not need this, but this is the
simple fix (and requires no upstream co-ordination)

diffstat:

 external/bsd/mdocml/lib/libmandoc/Makefile |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (16 lines):

diff -r 36334759d576 -r a67d53268e03 external/bsd/mdocml/lib/libmandoc/Makefile
--- a/external/bsd/mdocml/lib/libmandoc/Makefile        Wed Aug 15 22:07:32 2018 +0000
+++ b/external/bsd/mdocml/lib/libmandoc/Makefile        Thu Aug 16 01:08:18 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.9 2018/08/14 08:53:06 christos Exp $
+# $NetBSD: Makefile,v 1.10 2018/08/16 01:08:18 kre Exp $
 
 LIBISPRIVATE=  yes
 
@@ -40,4 +40,6 @@
 COPTS.mdoc_macro.c+=-O0
 .endif
 
+COPTS.man_validate.c+=-Wno-error=array-bounds
+
 .include <bsd.lib.mk>



Home | Main Index | Thread Index | Old Index