com php-src: Fix PUTC warning: main/php_output.h
| From: | Nikita Popov | Date: | Sun, 07 Aug 2016 15:43:20 +0000 |
| Subject: | com php-src: Fix PUTC warning: main/php_output.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-93664@lists.php.net to get a copy of this message | ||
Commit: af77c53ee10c66b3f39ac68da3bb0b0622e32255
Author: Nikita Popov <nikic@php.net> Sun, 7 Aug 2016 16:44:31 +0200
Parents: 3823bfc6f2e06bf3d8df7660a4b85a92ff9328c4
Branches: PHP-7.1
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=af77c53ee10c66b3f39ac68da3bb0b0622e32255
Log:
Fix PUTC warning
Change the macro to not provide a useless return value using a
comma expression, which generates warnings.
Changed paths:
M main/php_output.h
Diff:
diff --git a/main/php_output.h b/main/php_output.h
index 5d2ea5f..d1f0bb3 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); \