diff options
author | Dmitry Stogov <dmitry@zend.com> | 2014-04-22 17:46:34 +0400 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2014-04-22 17:46:34 +0400 |
commit | 5864ce8a447b718d0912cb073afe87eddc47b2e8 (patch) | |
tree | 81d7b40143c084383637c253bd61c3c795ca428f /Zend/zend_execute.c | |
parent | c0b49a701a74f9be1f99f79c4334d4aecdf1f1c6 (diff) | |
download | php-git-5864ce8a447b718d0912cb073afe87eddc47b2e8.tar.gz |
Fixed compilation warnings
Diffstat (limited to 'Zend/zend_execute.c')
-rw-r--r-- | Zend/zend_execute.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Zend/zend_execute.c b/Zend/zend_execute.c index 839fc491ef..2866f841d6 100644 --- a/Zend/zend_execute.c +++ b/Zend/zend_execute.c @@ -382,10 +382,10 @@ static inline zval *_get_zval_ptr(int op_type, const znode_op *node, const zend_ return NULL; break; case IS_CV: + default: should_free->var = NULL; return _get_zval_ptr_cv(execute_data, node->var, type TSRMLS_CC); break; - EMPTY_SWITCH_DEFAULT_CASE() } return NULL; } @@ -412,10 +412,10 @@ static inline zval *_get_zval_ptr_deref(int op_type, const znode_op *node, const return NULL; break; case IS_CV: + default: should_free->var = NULL; return _get_zval_ptr_cv_deref(execute_data, node->var, type TSRMLS_CC); break; - EMPTY_SWITCH_DEFAULT_CASE() } return NULL; } @@ -438,8 +438,6 @@ static zend_always_inline zval *_get_zval_ptr_ptr_var(zend_uint var, const zend_ static inline zval *_get_zval_ptr_ptr(int op_type, const znode_op *node, const zend_execute_data *execute_data, zend_free_op *should_free, int type TSRMLS_DC) { - zval *ret; - if (op_type == IS_CV) { should_free->var = NULL; return _get_zval_ptr_cv(execute_data, node->var, type TSRMLS_CC); |