Fix gcc warnings with enabling libxml2
This commit is contained in:
parent
db2825eed5
commit
5b6af242e1
|
@ -3234,11 +3234,11 @@ FcConfigParseAndLoadFromMemoryInternal (FcConfig *config,
|
||||||
size_t len;
|
size_t len;
|
||||||
FcConfigParse parse;
|
FcConfigParse parse;
|
||||||
FcBool error = FcTrue;
|
FcBool error = FcTrue;
|
||||||
void *buf;
|
|
||||||
|
|
||||||
#ifdef ENABLE_LIBXML2
|
#ifdef ENABLE_LIBXML2
|
||||||
xmlSAXHandler sax;
|
xmlSAXHandler sax;
|
||||||
#else
|
#else
|
||||||
|
void *buf;
|
||||||
const FcChar8 *s;
|
const FcChar8 *s;
|
||||||
size_t buflen;
|
size_t buflen;
|
||||||
#endif
|
#endif
|
||||||
|
@ -3303,7 +3303,7 @@ FcConfigParseAndLoadFromMemoryInternal (FcConfig *config,
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef ENABLE_LIBXML2
|
#ifdef ENABLE_LIBXML2
|
||||||
if (xmlParseChunk (p, buffer, len, len == 0))
|
if (xmlParseChunk (p, (const char *)buffer, len, len == 0))
|
||||||
#else
|
#else
|
||||||
if (!XML_ParseBuffer (p, buflen, buflen == 0))
|
if (!XML_ParseBuffer (p, buflen, buflen == 0))
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue