From: Nikita Popov Date: Sat, 13 Sep 2014 20:21:35 +0000 (+0200) Subject: Drop dead assignments X-Git-Tag: PRE_NATIVE_TLS_MERGE~150^2~18^2~23 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=88e07324d92f8879eb3927a251e81f72fcdd985b;p=php Drop dead assignments --- diff --git a/Zend/zend_API.c b/Zend/zend_API.c index 05d49b8f59..fdbefde86b 100644 --- a/Zend/zend_API.c +++ b/Zend/zend_API.c @@ -1303,7 +1303,7 @@ ZEND_API void object_properties_load(zend_object *object, HashTable *properties zval_add_ref(&object->properties_table[property_info->offset]); if (object->properties) { ZVAL_INDIRECT(&tmp, &object->properties_table[property_info->offset]); - prop = zend_hash_update(object->properties, key, &tmp); + zend_hash_update(object->properties, key, &tmp); } } else { if (!object->properties) { diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index a3942b98ee..f489d59dad 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -1937,7 +1937,7 @@ static void zend_add_trait_method(zend_class_entry *ce, const char *name, zend_s ALLOC_HASHTABLE(*overriden); zend_hash_init_ex(*overriden, 8, NULL, ptr_dtor, 0, 0); } - fn = zend_hash_update_mem(*overriden, key, fn, sizeof(zend_function)); + zend_hash_update_mem(*overriden, key, fn, sizeof(zend_function)); return; } else if (existing_fn->common.fn_flags & ZEND_ACC_ABSTRACT) { /* Make sure the trait method is compatible with previosly declared abstract method */ @@ -4551,7 +4551,7 @@ void zend_compile_new(znode *result, zend_ast *ast TSRMLS_DC) /* {{{ */ zend_compile_class_ref(&class_node, class_ast TSRMLS_CC); opnum = get_next_op_number(CG(active_op_array)); - opline = zend_emit_op(result, ZEND_NEW, &class_node, NULL TSRMLS_CC); + zend_emit_op(result, ZEND_NEW, &class_node, NULL TSRMLS_CC); zend_compile_call_common(&ctor_result, args_ast, NULL TSRMLS_CC); zend_do_free(&ctor_result TSRMLS_CC);