diff options
author | Nikita Popov <nikic@php.net> | 2016-08-07 16:44:31 +0200 |
---|---|---|
committer | Nikita Popov <nikic@php.net> | 2016-08-07 17:43:20 +0200 |
commit | af77c53ee10c66b3f39ac68da3bb0b0622e32255 (patch) | |
tree | 7f4203f76f8c2af8aef2d0064d01071d6ab678c8 /main/php_output.h | |
parent | 3823bfc6f2e06bf3d8df7660a4b85a92ff9328c4 (diff) | |
download | php-git-af77c53ee10c66b3f39ac68da3bb0b0622e32255.tar.gz |
Fix PUTC warning
Change the macro to not provide a useless return value using a
comma expression, which generates warnings.
Diffstat (limited to 'main/php_output.h')
-rw-r--r-- | main/php_output.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/php_output.h b/main/php_output.h index 5d2ea5f9e8..d1f0bb3842 100644 --- a/main/php_output.h +++ b/main/php_output.h @@ -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); \ |