Skip to content

Commit 2dbdcf1

Browse files
committed
add ZEND_NORETURN to zend_strerror_noreturn()
1 parent a00e146 commit 2dbdcf1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Zend/zend.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1622,7 +1622,7 @@ ZEND_API ZEND_COLD ZEND_NORETURN void zend_error_noreturn(int type, const char *
16221622
abort();
16231623
}
16241624

1625-
ZEND_API ZEND_COLD void zend_strerror_noreturn(int type, int errn, const char *message)
1625+
ZEND_API ZEND_COLD ZEND_NORETURN void zend_strerror_noreturn(int type, int errn, const char *message)
16261626
{
16271627
#ifdef HAVE_STR_ERROR_R
16281628
char buf[1024];

Zend/zend.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ ZEND_API ZEND_COLD void zend_value_error(const char *format, ...) ZEND_ATTRIBUTE
355355
ZEND_COLD void zenderror(const char *error);
356356

357357
/* For internal C errors */
358-
ZEND_API ZEND_COLD void zend_strerror_noreturn(int type, int errn, const char *message);
358+
ZEND_API ZEND_COLD ZEND_NORETURN void zend_strerror_noreturn(int type, int errn, const char *message);
359359

360360
/* The following #define is used for code duality in PHP for Engine 1 & 2 */
361361
#define ZEND_STANDARD_CLASS_DEF_PTR zend_standard_class_def

0 commit comments

Comments
 (0)