Fix gcc warnings with enabling libxml2

This commit is contained in:
Akira TAGOH 2017-07-11 15:34:50 +09:00
parent db2825eed5
commit 5b6af242e1
1 changed files with 2 additions and 2 deletions

View File

@ -3234,11 +3234,11 @@ FcConfigParseAndLoadFromMemoryInternal (FcConfig *config,
size_t len;
FcConfigParse parse;
FcBool error = FcTrue;
void *buf;
#ifdef ENABLE_LIBXML2
xmlSAXHandler sax;
#else
void *buf;
const FcChar8 *s;
size_t buflen;
#endif
@ -3303,7 +3303,7 @@ FcConfigParseAndLoadFromMemoryInternal (FcConfig *config,
#endif
#ifdef ENABLE_LIBXML2
if (xmlParseChunk (p, buffer, len, len == 0))
if (xmlParseChunk (p, (const char *)buffer, len, len == 0))
#else
if (!XML_ParseBuffer (p, buflen, buflen == 0))
#endif