Skip to content

Commit cf29c0f

Browse files
committed
Remove phpdbg_xml_asprintf()
Clang doesn't like the use of promoted zend_bool in va_start. As the function isn't used anyway, I'm simply dropping it...
1 parent 88d52ae commit cf29c0f

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

sapi/phpdbg/phpdbg_out.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -863,17 +863,6 @@ PHPDBG_API int phpdbg_xml_vasprintf(char **buf, const char *format, zend_bool es
863863
}
864864
/* copy end */
865865

866-
PHPDBG_API int _phpdbg_xml_asprintf(char **buf, const char *format, zend_bool escape_xml, ...) {
867-
int ret;
868-
va_list va;
869-
870-
va_start(va, escape_xml);
871-
ret = phpdbg_xml_vasprintf(buf, format, escape_xml, va);
872-
va_end(va);
873-
874-
return ret;
875-
}
876-
877866
PHPDBG_API int _phpdbg_asprintf(char **buf, const char *format, ...) {
878867
int ret;
879868
va_list va;

sapi/phpdbg/phpdbg_out.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,6 @@ PHPDBG_API int phpdbg_rlog_internal(int fd, const char *fmt, ...) PHPDBG_ATTRIBU
6767

6868
#define phpdbg_rlog(fd, fmt, ...) phpdbg_rlog_internal(fd, fmt, ##__VA_ARGS__)
6969

70-
#define phpdbg_xml_asprintf(buf, ...) _phpdbg_xml_asprintf(buf, ##__VA_ARGS__)
71-
PHPDBG_API int _phpdbg_xml_asprintf(char **buf, const char *format, zend_bool escape_xml, ...);
72-
7370
#define phpdbg_asprintf(buf, ...) _phpdbg_asprintf(buf, ##__VA_ARGS__)
7471
PHPDBG_API int _phpdbg_asprintf(char **buf, const char *format, ...);
7572

0 commit comments

Comments
 (0)