com php-src: Eliminate compiler warnings: "warning: pointer targets in initialization differ in signedness": ext/xml/xml.c
| From: | Christopher Jones | Date: | Tue, 20 Aug 2013 17:41:29 +0000 |
| Subject: | com php-src: Eliminate compiler warnings: "warning: pointer targets in initialization differ in signedness": ext/xml/xml.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-73032@lists.php.net to get a copy of this message | ||
Commit: d82f9339fee1795f26498539b5276c7bdd654658
Author: Christopher Jones <sixd@php.net> Tue, 20 Aug 2013 10:41:29 -0700
Parents: eba85f91d834f1e1d1278af255ee92b04ad770b9
Branches: PHP-5.4 PHP-5.5 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=d82f9339fee1795f26498539b5276c7bdd654658
Log:
Eliminate compiler warnings: "warning: pointer targets in initialization differ in
signedness"
Changed paths:
M ext/xml/xml.c
Diff:
diff --git a/ext/xml/xml.c b/ext/xml/xml.c
index 334938a..1ef01c8 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;