com php-src: Avoid onig match param unused variable warning: ext/mbstring/mbstring.c ext/mbstring/php_mbregex.c

From: Date: Thu, 11 Apr 2019 10:35:24 +0000
Subject: com php-src: Avoid onig match param unused variable warning: ext/mbstring/mbstring.c ext/mbstring/php_mbregex.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-105645@lists.php.net to get a copy of this message
Commit: a61d24e4d8350b9bd749ca74bdaed422c6caa830 Author: Nikita Popov <nikita.ppv@gmail.com> Thu, 11 Apr 2019 12:34:18 +0200 Parents: ce72bc6b658c335dd37393d0beb28584e6805e97 Branches: PHP-7.3 PHP-7.4 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=a61d24e4d8350b9bd749ca74bdaed422c6caa830 Log: Avoid onig match param unused variable warning Changed paths: M ext/mbstring/mbstring.c M ext/mbstring/php_mbregex.c Diff: diff --git a/ext/mbstring/mbstring.c b/ext/mbstring/mbstring.c index 28ea4bd..5707e1c 100644 --- a/ext/mbstring/mbstring.c +++ b/ext/mbstring/mbstring.c @@ -68,7 +68,7 @@ #if ONIGURUMA_VERSION_INT < 60800 typedef void OnigMatchParam; #define onig_new_match_param() (NULL) -#define onig_initialize_match_param(x) +#define onig_initialize_match_param(x) (void)(x) #define onig_set_match_stack_limit_size_of_match_param(x, y) #define onig_free_match_param(x) #define onig_search_with_param(reg, str, end, start, range, region, option, mp) \ diff --git a/ext/mbstring/php_mbregex.c b/ext/mbstring/php_mbregex.c index 80a4be9..47dd41b 100644 --- a/ext/mbstring/php_mbregex.c +++ b/ext/mbstring/php_mbregex.c @@ -37,7 +37,7 @@ #if ONIGURUMA_VERSION_INT < 60800 typedef void OnigMatchParam; #define onig_new_match_param() (NULL) -#define onig_initialize_match_param(x) +#define onig_initialize_match_param(x) (void)(x) #define onig_set_match_stack_limit_size_of_match_param(x, y) #define onig_free_match_param(x) #define onig_search_with_param(reg, str, end, start, range, region, option, mp) \

« previous php.cvs (#105645) next »