Source-Changes-HG archive

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

[src/trunk]: src/external/bsd/mdocml/dist Restore cast hack for GCC's "new qu...



details:   https://anonhg.NetBSD.org/src/rev/203347761183
branches:  trunk
changeset: 325769:203347761183
user:      joerg <joerg%NetBSD.org@localhost>
date:      Sun Jan 05 20:38:55 2014 +0000

description:
Restore cast hack for GCC's "new qualifiers in middle of multi-level
non-const cast" warning.

diffstat:

 external/bsd/mdocml/dist/roff.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r cc652255cc21 -r 203347761183 external/bsd/mdocml/dist/roff.c
--- a/external/bsd/mdocml/dist/roff.c   Sun Jan 05 19:49:57 2014 +0000
+++ b/external/bsd/mdocml/dist/roff.c   Sun Jan 05 20:38:55 2014 +0000
@@ -646,7 +646,7 @@
                if ('\\' == *p) {
                        /* Skip over escapes. */
                        p++;
-                       esc = mandoc_escape((const char **)&p, NULL, NULL);
+                       esc = mandoc_escape((const char **)(void *)&p, NULL, NULL);
                        if (ESCAPE_ERROR == esc)
                                break;
                        continue;



Home | Main Index | Thread Index | Old Index