]> granicus.if.org Git - php/commitdiff
Fix PUTC warning
authorNikita Popov <nikic@php.net>
Sun, 7 Aug 2016 14:44:31 +0000 (16:44 +0200)
committerNikita Popov <nikic@php.net>
Sun, 7 Aug 2016 15:43:20 +0000 (17:43 +0200)
Change the macro to not provide a useless return value using a
comma expression, which generates warnings.

main/php_output.h

index 5d2ea5f9e8c9adf9ae7069fc32d30d1b3e3bd39a..d1f0bb3842b91d6f705ecd532e1411e394bac0c5 100644 (file)
@@ -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);                                                      \