com php-src: remove unused var, make string.c compilation zero warnings: ext/standard/string.c

From: Date: Sat, 24 Jan 2015 03:26:01 +0000
Subject: com php-src: remove unused var, make string.c compilation zero warnings: ext/standard/string.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-84352@lists.php.net to get a copy of this message
Commit: f27e96c2f8cd6ecc8a78429fd7cf2e590adeeb49 Author: Márcio Almada <marcio3w@gmail.com> Sat, 24 Jan 2015 00:26:01 -0300 Parents: be5337421680f059f7b23dd530645e070b15715a Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=f27e96c2f8cd6ecc8a78429fd7cf2e590adeeb49 Log: remove unused var, make string.c compilation zero warnings Changed paths: M ext/standard/string.c Diff: diff --git a/ext/standard/string.c b/ext/standard/string.c index d6c2a6c..e22dba3 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -3145,7 +3145,6 @@ static zend_string* php_char_to_str_ex(zend_string *str, char from, char *to, si { zend_string *result; size_t char_count = 0; - size_t replaced = 0; char lc_from = 0; char *source, *target, *source_end= str->val + str->len; @@ -3195,7 +3194,6 @@ static zend_string* php_char_to_str_ex(zend_string *str, char from, char *to, si } else { for (source = str->val; source < source_end; source++) { if (tolower(*source) == lc_from) { - replaced = 1; if (replace_count) { *replace_count += 1; }

« previous php.cvs (#84352) next »