Skip to content

Commit 5430a46

Browse files
committed
Avoid control flow warning
1 parent 919adcf commit 5430a46

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Zend/zend_operators.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1017,6 +1017,7 @@ static zend_never_inline int ZEND_FASTCALL add_function_slow(zval *result, zval
10171017
}
10181018

10191019
ZEND_ASSERT(0 && "Operation must succeed");
1020+
return FAILURE;
10201021
} /* }}} */
10211022

10221023
ZEND_API int ZEND_FASTCALL add_function(zval *result, zval *op1, zval *op2) /* {{{ */
@@ -1080,6 +1081,7 @@ static zend_never_inline int ZEND_FASTCALL sub_function_slow(zval *result, zval
10801081
}
10811082

10821083
ZEND_ASSERT(0 && "Operation must succeed");
1084+
return FAILURE;
10831085
}
10841086
/* }}} */
10851087

@@ -1147,6 +1149,7 @@ static zend_never_inline int ZEND_FASTCALL mul_function_slow(zval *result, zval
11471149
}
11481150

11491151
ZEND_ASSERT(0 && "Operation must succeed");
1152+
return FAILURE;
11501153
}
11511154
/* }}} */
11521155

@@ -1246,6 +1249,7 @@ ZEND_API int ZEND_FASTCALL pow_function(zval *result, zval *op1, zval *op2) /* {
12461249
}
12471250

12481251
ZEND_ASSERT(0 && "Operation must succeed");
1252+
return FAILURE;
12491253
}
12501254
/* }}} */
12511255

@@ -1324,6 +1328,7 @@ ZEND_API int ZEND_FASTCALL div_function(zval *result, zval *op1, zval *op2) /* {
13241328
}
13251329

13261330
ZEND_ASSERT(0 && "Operation must succeed");
1331+
return FAILURE;
13271332
}
13281333
/* }}} */
13291334

0 commit comments

Comments
 (0)