diff options
author | Adam Saponara <as@php.net> | 2017-09-17 17:13:45 -0400 |
---|---|---|
committer | Adam Saponara <as@php.net> | 2017-09-17 17:13:45 -0400 |
commit | fd287abe1bfd239d956e3af05a9006f7e78f6ec3 (patch) | |
tree | 93d70dee77d78cba15341b190c9e9202e3d68a8a | |
parent | 4d75b5b145478754e847f53b67a01acec984a1a6 (diff) | |
download | weechat-fd287abe1bfd239d956e3af05a9006f7e78f6ec3.zip |
php: fix compiler warning for PHP >=7.1
-rw-r--r-- | src/plugins/php/weechat-php.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/plugins/php/weechat-php.c b/src/plugins/php/weechat-php.c index d4f6311f1..8a734799e 100644 --- a/src/plugins/php/weechat-php.c +++ b/src/plugins/php/weechat-php.c @@ -1090,8 +1090,15 @@ php_weechat_sapi_error (int type, const char *format, ...) } void +#if PHP_MINOR_VERSION >= 1 +php_weechat_log_message (char *message, int syslog_type_int) +#else php_weechat_log_message (char *message) +#endif { +#if PHP_MINOR_VERSION >= 1 + (void)syslog_type_int; +#endif php_weechat_ub_write (message, strlen (message)); } |