Merge pull request #722 from htacg/issue-721

Is #721 - cast away some gcc warnings - PR #722
This commit is contained in:
Geoff McLane 2018-04-24 18:30:35 +02:00 committed by GitHub
commit ddc68b4b71
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1562,7 +1562,7 @@ static void printOptionExportValues(TidyDoc ARG_UNUSED(tdoc), /**< The Tidy doc
{ {
if (buf1.size) if (buf1.size)
tidyBufAppend(&buf1, " ", 1); tidyBufAppend(&buf1, " ", 1);
tidyBufAppend(&buf1, d->def, strlen(d->def)); tidyBufAppend(&buf1, (void *)d->def, strlen(d->def));
} }
} }
invertBuffer(&buf1, &buf2); /* Is #697 - specialised service to invert words */ invertBuffer(&buf1, &buf2); /* Is #697 - specialised service to invert words */
@ -1589,7 +1589,7 @@ static void printOptionExportValues(TidyDoc ARG_UNUSED(tdoc), /**< The Tidy doc
{ {
if (buf1.size) if (buf1.size)
tidyBufAppend(&buf1, " ", 1); tidyBufAppend(&buf1, " ", 1);
tidyBufAppend(&buf1, d->def, strlen(d->def)); tidyBufAppend(&buf1, (void *)d->def, strlen(d->def));
} }
} }
tidyBufAppend(&buf1, (void *)"\0", 1); /* is this really required? */ tidyBufAppend(&buf1, (void *)"\0", 1); /* is this really required? */