mirror of
https://github.com/php/php-src.git
synced 2024-11-24 10:24:11 +08:00
Fix PUTC warning
Change the macro to not provide a useless return value using a comma expression, which generates warnings.
This commit is contained in:
parent
3823bfc6f2
commit
af77c53ee1
@ -159,8 +159,8 @@ PHPAPI ZEND_EXTERN_MODULE_GLOBALS(output)
|
||||
#define PHPWRITE(str, str_len) php_output_write((str), (str_len))
|
||||
#define PHPWRITE_H(str, str_len) php_output_write_unbuffered((str), (str_len))
|
||||
|
||||
#define PUTC(c) (php_output_write((const char *) &(c), 1), (c))
|
||||
#define PUTC_H(c) (php_output_write_unbuffered((const char *) &(c), 1), (c))
|
||||
#define PUTC(c) php_output_write((const char *) &(c), 1)
|
||||
#define PUTC_H(c) php_output_write_unbuffered((const char *) &(c), 1)
|
||||
|
||||
#define PUTS(str) do { \
|
||||
const char *__str = (str); \
|
||||
|
Loading…
Reference in New Issue
Block a user