aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roff.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 /roff.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 'roff.c')
-rw-r--r--roff.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/roff.c b/roff.c
index 3ee8adfe..062758ce 100644
--- a/roff.c
+++ b/roff.c
@@ -1,4 +1,4 @@
-/* $Id: roff.c,v 1.178 2013/07/13 12:52:07 schwarze Exp $ */
+/* $Id: roff.c,v 1.179 2013/10/05 20:30:05 schwarze Exp $ */
/*
* Copyright (c) 2010, 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010, 2011, 2012, 2013 Ingo Schwarze <schwarze@openbsd.org>
@@ -627,7 +627,7 @@ roff_parsetext(char **bufp, size_t *szp, int pos, int *offs)
/* Skip over escapes. */
p++;
esc = mandoc_escape
- ((const char **)&p, NULL, NULL);
+ ((const char const **)&p, NULL, NULL);
if (ESCAPE_ERROR == esc)
break;
continue;