Skip to content

Commit d82f933

Browse files
committed
Eliminate compiler warnings: "warning: pointer targets in initialization differ in signedness"
1 parent eba85f9 commit d82f933

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ext/xml/xml.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -274,10 +274,10 @@ zend_module_entry xml_module_entry = {
274274
* the encoding is currently done internally by expat/xmltok.
275275
*/
276276
xml_encoding xml_encodings[] = {
277-
{ "ISO-8859-1", xml_decode_iso_8859_1, xml_encode_iso_8859_1 },
278-
{ "US-ASCII", xml_decode_us_ascii, xml_encode_us_ascii },
279-
{ "UTF-8", NULL, NULL },
280-
{ NULL, NULL, NULL }
277+
{ (XML_Char *)"ISO-8859-1", xml_decode_iso_8859_1, xml_encode_iso_8859_1 },
278+
{ (XML_Char *)"US-ASCII", xml_decode_us_ascii, xml_encode_us_ascii },
279+
{ (XML_Char *)"UTF-8", NULL, NULL },
280+
{ (XML_Char *)NULL, NULL, NULL }
281281
};
282282

283283
static XML_Memory_Handling_Suite php_xml_mem_hdlrs;

0 commit comments

Comments
 (0)