Skip to content

Commit 279b4fe

Browse files
committed
Remove compile warning "variable ‘mekeylen’ set but not used"
1 parent d5979c8 commit 279b4fe

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

ext/intl/resourcebundle/resourcebundle_class.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,6 @@ static void resourcebundle_array_fetch(zval *object, zval *offset, zval *return_
163163
{
164164
int32_t meindex = 0;
165165
char * mekey = NULL;
166-
long mekeylen;
167166
zend_bool is_numeric = 0;
168167
char *pbuf;
169168
ResourceBundle_object *rb;
@@ -177,7 +176,6 @@ static void resourcebundle_array_fetch(zval *object, zval *offset, zval *return_
177176
rb->child = ures_getByIndex( rb->me, meindex, rb->child, &INTL_DATA_ERROR_CODE(rb) );
178177
} else if(Z_TYPE_P(offset) == IS_STRING) {
179178
mekey = Z_STRVAL_P(offset);
180-
mekeylen = Z_STRLEN_P(offset);
181179
rb->child = ures_getByKey(rb->me, mekey, rb->child, &INTL_DATA_ERROR_CODE(rb) );
182180
} else {
183181
intl_errors_set(INTL_DATA_ERROR_P(rb), U_ILLEGAL_ARGUMENT_ERROR,

0 commit comments

Comments
 (0)