Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fa28264

Browse files
committed
redis.c:4652:13: warning: variable 'type' set but not used
1 parent fa9bfeb commit fa28264

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

redis.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4649,10 +4649,9 @@ PHPAPI void array_zip_values_and_scores(RedisSock *redis_sock, zval *z_tab, int
46494649
unsigned int tablekey_len;
46504650
int hkey_len, hval_len;
46514651
unsigned long idx;
4652-
int type;
46534652
zval **z_key_pp, **z_value_pp;
46544653

4655-
type = zend_hash_get_current_key_ex(keytable, &tablekey, &tablekey_len, &idx, 0, NULL);
4654+
zend_hash_get_current_key_ex(keytable, &tablekey, &tablekey_len, &idx, 0, NULL);
46564655
if(zend_hash_get_current_data(keytable, (void**)&z_key_pp) == FAILURE) {
46574656
continue; /* this should never happen, according to the PHP people. */
46584657
}
@@ -4666,7 +4665,7 @@ PHPAPI void array_zip_values_and_scores(RedisSock *redis_sock, zval *z_tab, int
46664665
zend_hash_move_forward(keytable);
46674666

46684667
/* fetch again */
4669-
type = zend_hash_get_current_key_ex(keytable, &tablekey, &tablekey_len, &idx, 0, NULL);
4668+
zend_hash_get_current_key_ex(keytable, &tablekey, &tablekey_len, &idx, 0, NULL);
46704669
if(zend_hash_get_current_data(keytable, (void**)&z_value_pp) == FAILURE) {
46714670
continue; /* this should never happen, according to the PHP people. */
46724671
}

0 commit comments

Comments
 (0)