From: Christopher Jones Date: Tue, 20 Aug 2013 17:41:29 +0000 (-0700) Subject: Eliminate compiler warnings: "warning: pointer targets in initialization differ in... X-Git-Tag: php-5.5.6RC1~16^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d82f9339fee1795f26498539b5276c7bdd654658;p=php Eliminate compiler warnings: "warning: pointer targets in initialization differ in signedness" --- diff --git a/ext/xml/xml.c b/ext/xml/xml.c index 334938ab24..1ef01c8864 100644 --- a/ext/xml/xml.c +++ b/ext/xml/xml.c @@ -274,10 +274,10 @@ zend_module_entry xml_module_entry = { * the encoding is currently done internally by expat/xmltok. */ xml_encoding xml_encodings[] = { - { "ISO-8859-1", xml_decode_iso_8859_1, xml_encode_iso_8859_1 }, - { "US-ASCII", xml_decode_us_ascii, xml_encode_us_ascii }, - { "UTF-8", NULL, NULL }, - { NULL, NULL, NULL } + { (XML_Char *)"ISO-8859-1", xml_decode_iso_8859_1, xml_encode_iso_8859_1 }, + { (XML_Char *)"US-ASCII", xml_decode_us_ascii, xml_encode_us_ascii }, + { (XML_Char *)"UTF-8", NULL, NULL }, + { (XML_Char *)NULL, NULL, NULL } }; static XML_Memory_Handling_Suite php_xml_mem_hdlrs;