diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2013-10-05 20:30:05 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2013-10-05 20:30:05 +0000 |
commit | 579e24cf01bba12f654342bd89e67dfba1f96569 (patch) | |
tree | 22e1d196c04d1ccfce3f967a82bc1bc940401c5f /out.c | |
parent | edb9abb7cc51f9770c77ed2969f2baf8debc85af (diff) | |
download | mandoc-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.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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; |