diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2018-05-17 22:04:19 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2018-05-17 22:04:19 +0200 |
commit | 4aeed262f8ddf9d445e9896726783456744f8a84 (patch) | |
tree | bf444dc4c06627a5e211d10a086b536ed09960e9 /src | |
parent | 8b876bd668384eaa7c8a4e58173447e52896809a (diff) | |
download | weechat-4aeed262f8ddf9d445e9896726783456744f8a84.zip |
php: add comments about C compiler happiness
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/php/weechat-php.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/plugins/php/weechat-php.c b/src/plugins/php/weechat-php.c index ec6f7aeaa..1e2bdc6c8 100644 --- a/src/plugins/php/weechat-php.c +++ b/src/plugins/php/weechat-php.c @@ -299,7 +299,8 @@ const zend_function_entry weechat_functions[] = { PHP_MINIT_FUNCTION(weechat) { - (void)type; + /* make C compiler happy */ + (void) type; /* Register integer constants */ #define PHP_WEECHAT_CONSTANT(NAME) \ @@ -1228,7 +1229,9 @@ php_weechat_ub_write (const char *str, size_t str_length) void php_weechat_sapi_error (int type, const char *format, ...) { + /* make C compiler happy */ (void) type; + weechat_va_format (format); if (vbuffer) { @@ -1242,6 +1245,7 @@ php_weechat_sapi_error (int type, const char *format, ...) void php_weechat_log_message (char *message, int syslog_type_int) { + /* make C compiler happy */ (void) syslog_type_int; php_weechat_ub_write (message, strlen (message)); |