php: fix compiler warning for PHP >=7.1

This commit is contained in:
Adam Saponara 2017-09-17 17:13:45 -04:00
parent 4d75b5b145
commit fd287abe1b

View File

@ -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));
}