diff options
author | Akira TAGOH <akira@tagoh.org> | 2017-07-11 15:34:50 +0900 |
---|---|---|
committer | Akira TAGOH <akira@tagoh.org> | 2017-07-11 15:38:01 +0900 |
commit | 5b6af242e1eb0a6456fe9ab9a99efa3ba42f83c6 (patch) | |
tree | 6e1a4dd32064207329467930f796effe97154056 /src | |
parent | db2825eed54496f4e20f7375d71d6a92b27926a2 (diff) |
Fix gcc warnings with enabling libxml2
Diffstat (limited to 'src')
-rw-r--r-- | src/fcxml.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fcxml.c b/src/fcxml.c index a7a41ce0..3c18cede 100644 --- a/src/fcxml.c +++ b/src/fcxml.c @@ -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 |