From f27e96c2f8cd6ecc8a78429fd7cf2e590adeeb49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rcio=20Almada?= Date: Sat, 24 Jan 2015 00:26:01 -0300 Subject: [PATCH] remove unused var, make string.c compilation zero warnings --- ext/standard/string.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/ext/standard/string.c b/ext/standard/string.c index d6c2a6c3da1..e22dba3967f 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; }