]> granicus.if.org Git - php/commitdiff
Remove compile warning "variable ‘mekeylen’ set but not used"
authorChristopher Jones <sixd@php.net>
Tue, 20 Aug 2013 00:40:15 +0000 (17:40 -0700)
committerChristopher Jones <sixd@php.net>
Tue, 20 Aug 2013 00:40:15 +0000 (17:40 -0700)
ext/intl/resourcebundle/resourcebundle_class.c

index 9c369bdecc4b4d5fbce49e9b85b60c30a732d077..dc1212431a9a4ed33ed4466c000619fe05599ae8 100644 (file)
@@ -163,7 +163,6 @@ static void resourcebundle_array_fetch(zval *object, zval *offset, zval *return_
 {
        int32_t     meindex = 0;
        char *      mekey = NULL;
-       long        mekeylen;
     zend_bool    is_numeric = 0;
        char         *pbuf;
        ResourceBundle_object *rb;
@@ -177,7 +176,6 @@ static void resourcebundle_array_fetch(zval *object, zval *offset, zval *return_
                rb->child = ures_getByIndex( rb->me, meindex, rb->child, &INTL_DATA_ERROR_CODE(rb) );
        } else if(Z_TYPE_P(offset) == IS_STRING) {
                mekey = Z_STRVAL_P(offset);
-               mekeylen = Z_STRLEN_P(offset);
                rb->child = ures_getByKey(rb->me, mekey, rb->child, &INTL_DATA_ERROR_CODE(rb) );
        } else {
                intl_errors_set(INTL_DATA_ERROR_P(rb), U_ILLEGAL_ARGUMENT_ERROR,