]> granicus.if.org Git - php/commitdiff
Eliminate compiler warnings: "warning: pointer targets in initialization differ in...
authorChristopher Jones <sixd@php.net>
Tue, 20 Aug 2013 17:41:29 +0000 (10:41 -0700)
committerChristopher Jones <sixd@php.net>
Tue, 20 Aug 2013 17:41:29 +0000 (10:41 -0700)
ext/xml/xml.c

index 334938ab24c7b0631059792bb65b9bfb990579c8..1ef01c88646af04506bf0eb71a0aa3de7d136bd8 100644 (file)
@@ -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;