mirror of
https://github.com/php/php-src.git
synced 2025-08-16 14:08:47 +02:00
Address more Clang warnings (GH-17506)
We prefer clean solutions (such as declaring the proper type in the
first place, or introducing a portable format specifier) where easily
possible, but resort to casts otherwise.
We also port f1480ab14b
.
This commit is contained in:
parent
75bd1a9dc0
commit
aa76127d01
11 changed files with 20 additions and 20 deletions
|
@ -433,9 +433,9 @@ static void *php_libxml_streams_IO_open_wrapper(const char *filename, const char
|
|||
|
||||
if (strncasecmp(resolved_path, "file:/", pre_len) == 0
|
||||
&& '/' != resolved_path[pre_len]) {
|
||||
xmlChar *tmp = xmlStrdup(resolved_path + pre_len);
|
||||
xmlChar *tmp = xmlStrdup(BAD_CAST (resolved_path + pre_len));
|
||||
xmlFree(resolved_path);
|
||||
resolved_path = tmp;
|
||||
resolved_path = (char *) tmp;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue