From fd287abe1bfd239d956e3af05a9006f7e78f6ec3 Mon Sep 17 00:00:00 2001 From: Adam Saponara Date: Sun, 17 Sep 2017 17:13:45 -0400 Subject: php: fix compiler warning for PHP >=7.1 --- src/plugins/php/weechat-php.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/plugins/php') 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)); } -- cgit v1.2.3