com php-src: Mark zend_timeout as noreturn: Zend/zend _execute.h Zend/zend_execute_API.c
| From: | Nikita Popov | Date: | Thu, 21 Apr 2016 21:35:51 +0000 |
| Subject: | com php-src: Mark zend_timeout as noreturn: Zend/zend _execute.h Zend/zend_execute_API.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-91815@lists.php.net to get a copy of this message | ||
Commit: 89fbce5c5ff4990a1ec2fb8fde06f802a707aa5f
Author: Nikita Popov <nikic@php.net> Thu, 21 Apr 2016 23:35:51 +0200
Parents: a5944f8dd5c45a95bb0cfdea52dd2301fab1f39c
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=89fbce5c5ff4990a1ec2fb8fde06f802a707aa5f
Log:
Mark zend_timeout as noreturn
Otherwise we get a compiler warning...
Changed paths:
M Zend/zend_execute.h
M Zend/zend_execute_API.c
Diff:
diff --git a/Zend/zend_execute.h b/Zend/zend_execute.h
index b2163c7..05f0e9a 100644
--- a/Zend/zend_execute.h
+++ b/Zend/zend_execute.h
@@ -288,7 +288,7 @@ ZEND_API zend_bool zend_is_executing(void);
ZEND_API void zend_set_timeout(zend_long seconds, int reset_signals);
ZEND_API void zend_unset_timeout(void);
-ZEND_API void zend_timeout(int dummy);
+ZEND_API ZEND_NORETURN void zend_timeout(int dummy);
ZEND_API zend_class_entry *zend_fetch_class(zend_string *class_name, int fetch_type);
ZEND_API zend_class_entry *zend_fetch_class_by_name(zend_string *class_name, const zval *key, int
fetch_type);
void zend_verify_abstract_class(zend_class_entry *ce);
diff --git a/Zend/zend_execute_API.c b/Zend/zend_execute_API.c
index 99cc601..f1abd80 100644
--- a/Zend/zend_execute_API.c
+++ b/Zend/zend_execute_API.c
@@ -1186,7 +1186,7 @@ ZEND_API int zend_eval_string_ex(char *str, zval *retval_ptr, char
*string_name,
static void zend_set_timeout_ex(zend_long seconds, int reset_signals);
-ZEND_API void zend_timeout(int dummy) /* {{{ */
+ZEND_API ZEND_NORETURN void zend_timeout(int dummy) /* {{{ */
{
EG(timed_out) = 0;
zend_set_timeout_ex(0, 1);