com php-src: fix warning not all control paths return a value: Zend/zend_compile.c
| From: | Anatol Belski | Date: | Fri, 31 Oct 2014 18:36:21 +0000 |
| Subject: | com php-src: fix warning not all control paths return a value: Zend/zend_compile.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-82922@lists.php.net to get a copy of this message | ||
Commit: 073c5e09976043890d81a2d0432b9cd5eef1afec
Author: Anatol Belski <ab@php.net> Fri, 31 Oct 2014 18:49:29 +0100
Parents: cd574ca4677a101a51636cda26660fe2b74e3fa1
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=073c5e09976043890d81a2d0432b9cd5eef1afec
Log:
fix warning not all control paths return a value
Changed paths:
M Zend/zend_compile.c
Diff:
diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c
index 78c42f3..babf39f 100644
--- a/Zend/zend_compile.c
+++ b/Zend/zend_compile.c
@@ -4639,6 +4639,8 @@ static HashTable *zend_get_import_ht(uint32_t type TSRMLS_DC) /* {{{ */
return CG(current_import_const);
EMPTY_SWITCH_DEFAULT_CASE()
}
+
+ return NULL;
}
/* }}} */
@@ -4653,6 +4655,8 @@ static char *zend_get_use_type_str(uint32_t type) /* {{{ */
return " const";
EMPTY_SWITCH_DEFAULT_CASE()
}
+
+ return " unknown";
}
/* }}} */