aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/out.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2013-10-05 20:30:05 +0000
committerIngo Schwarze <schwarze@openbsd.org>2013-10-05 20:30:05 +0000
commit579e24cf01bba12f654342bd89e67dfba1f96569 (patch)
tree22e1d196c04d1ccfce3f967a82bc1bc940401c5f /out.c
parentedb9abb7cc51f9770c77ed2969f2baf8debc85af (diff)
downloadmandoc-579e24cf01bba12f654342bd89e67dfba1f96569.tar.gz
mandoc-579e24cf01bba12f654342bd89e67dfba1f96569.tar.zst
mandoc-579e24cf01bba12f654342bd89e67dfba1f96569.zip
Cleanup suggested by gcc-4.8.1, following hints by Christos Zoulas:
- avoid bad qualifier casting in roff.c, roff_parsetext() by changing the mandoc_escape arguments to "const char const **" - avoid bad qualifier casting in mandocdb.c, index_merge() - do not complain about unused variables in test-*.c - garbage collect a few unused variables elsewhere
Diffstat (limited to 'out.c')
-rw-r--r--out.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/out.c b/out.c
index 1d8c8ab4..c9316649 100644
--- a/out.c
+++ b/out.c
@@ -1,4 +1,4 @@
-/* $Id: out.c,v 1.45 2013/05/31 21:37:17 schwarze Exp $ */
+/* $Id: out.c,v 1.46 2013/10/05 20:30:05 schwarze Exp $ */
/*
* Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2011 Ingo Schwarze <schwarze@openbsd.org>
@@ -142,7 +142,6 @@ void
tblcalc(struct rofftbl *tbl, const struct tbl_span *sp)
{
const struct tbl_dat *dp;
- const struct tbl_head *hp;
struct roffcol *col;
int spans;
@@ -156,8 +155,6 @@ tblcalc(struct rofftbl *tbl, const struct tbl_span *sp)
tbl->cols = mandoc_calloc
((size_t)sp->opts->cols, sizeof(struct roffcol));
- hp = sp->head;
-
for ( ; sp; sp = sp->next) {
if (TBL_SPAN_DATA != sp->pos)
continue;