Skip to content

Commit 6ff662b

Browse files
committed
Fix unused-but-set-variable warning in hebrev()
1 parent 40af94a commit 6ff662b

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

ext/standard/string.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4386,7 +4386,7 @@ PHP_FUNCTION(hebrev)
43864386
{
43874387
char *str, *heb_str, *target;
43884388
const char *tmp;
4389-
size_t block_start, block_end, block_type, block_length, i;
4389+
size_t block_start, block_end, block_type, i;
43904390
zend_long max_chars=0, char_count;
43914391
size_t begin, end, orig_begin;
43924392
size_t str_len;
@@ -4410,8 +4410,6 @@ PHP_FUNCTION(hebrev)
44104410
*target = 0;
44114411
target--;
44124412

4413-
block_length=0;
4414-
44154413
if (isheb(*tmp)) {
44164414
block_type = _HEB_BLOCK_TYPE_HEB;
44174415
} else {
@@ -4423,7 +4421,6 @@ PHP_FUNCTION(hebrev)
44234421
while ((isheb((int)*(tmp+1)) || _isblank((int)*(tmp+1)) || ispunct((int)*(tmp+1)) || (int)*(tmp+1)=='\n' ) && block_end<str_len-1) {
44244422
tmp++;
44254423
block_end++;
4426-
block_length++;
44274424
}
44284425
for (i = block_start+1; i<= block_end+1; i++) {
44294426
*target = str[i-1];
@@ -4468,7 +4465,6 @@ PHP_FUNCTION(hebrev)
44684465
while (!isheb(*(tmp+1)) && (int)*(tmp+1)!='\n' && block_end < str_len-1) {
44694466
tmp++;
44704467
block_end++;
4471-
block_length++;
44724468
}
44734469
while ((_isblank((int)*tmp) || ispunct((int)*tmp)) && *tmp!='/' && *tmp!='-' && block_end > block_start) {
44744470
tmp--;

0 commit comments

Comments
 (0)