fix cast warnings

This commit is contained in:
christos 2011-08-17 09:30:13 +00:00
parent 91009c117a
commit e307dc8de5
2 changed files with 3 additions and 8 deletions

View File

@ -723,7 +723,7 @@ pre_bl(PRE_ARGS)
if (LIST_column == lt) {
n->norm->Bl.ncols =
n->args->argv[i].sz;
n->norm->Bl.cols = (const char **)
n->norm->Bl.cols = (void *)
n->args->argv[i].value;
}
}
@ -1537,7 +1537,7 @@ post_bl_head(POST_ARGS)
((size_t)mdoc->last->nchild * sizeof(char *));
mdoc->last->norm->Bl.ncols = np->args->argv[j].sz;
mdoc->last->norm->Bl.cols = (const char **)np->args->argv[j].value;
mdoc->last->norm->Bl.cols = (void *)np->args->argv[j].value;
for (i = 0, nn = mdoc->last->child; nn; i++) {
np->args->argv[j].value[i] = nn->string;

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.2 2011/06/22 02:49:42 mrg Exp $
# $NetBSD: Makefile,v 1.3 2011/08/17 09:30:13 christos Exp $
LIBISPRIVATE= yes
@ -11,8 +11,3 @@ SRCS= man.c man_hash.c man_macro.c man_validate.c \
MAN= mandoc.3
.include <bsd.lib.mk>
# XXX
.if ${HAVE_GCC} == 45
COPTS.mdoc_validate.c+= -Wno-error
.endif