com php-src: Remove compile warning "variable ‘mekeylen ’ set but not used": ext/intl/resourcebun dle/resourcebundle_class.c
| From: | Christopher Jones | Date: | Tue, 20 Aug 2013 00:40:15 +0000 |
| Subject: | com php-src: Remove compile warning "variable ‘mekeylen ’ set but not used": ext/intl/resourcebun dle/resourcebundle_class.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-73010@lists.php.net to get a copy of this message | ||
Commit: 279b4fe614ac8380d6bdea9f9b54a77ec60114db
Author: Christopher Jones <sixd@php.net> Mon, 19 Aug 2013 17:40:15 -0700
Parents: d5979c88eaca273479cf244d3e10c2f089c4f080
Branches: PHP-5.5 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=279b4fe614ac8380d6bdea9f9b54a77ec60114db
Log:
Remove compile warning "variable ‘mekeylen’ set but not used"
Changed paths:
M ext/intl/resourcebundle/resourcebundle_class.c
Diff:
diff --git a/ext/intl/resourcebundle/resourcebundle_class.c
b/ext/intl/resourcebundle/resourcebundle_class.c
index 9c369bd..dc12124 100644
--- a/ext/intl/resourcebundle/resourcebundle_class.c
+++ b/ext/intl/resourcebundle/resourcebundle_class.c
@@ -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,