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

Skip to content

Commit e3b2a46

Browse files
committed
fix warning: variable 'redis_inst' set but not used [-Wunused-but-set-variable]
1 parent 6915597 commit e3b2a46

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

redis_array.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,7 @@ PHP_METHOD(RedisArray, mget)
715715
int *pos, argc, *argc_each;
716716
HashTable *h_keys;
717717
HashPosition pointer;
718-
zval **redis_instances, *redis_inst, **argv;
718+
zval **redis_instances, **argv;
719719

720720
/* Multi/exec support */
721721
HANDLE_MULTI_EXEC("MGET");
@@ -771,8 +771,6 @@ PHP_METHOD(RedisArray, mget)
771771
/* calls */
772772
for(n = 0; n < ra->count; ++n) { /* for each node */
773773

774-
redis_inst = ra->redis[n];
775-
776774
/* copy args for MGET call on node. */
777775
MAKE_STD_ZVAL(z_argarray);
778776
array_init(z_argarray);

0 commit comments

Comments
 (0)