mirror of
https://github.com/python/cpython.git
synced 2024-11-24 10:24:35 +08:00
mark fatal_error as noreturn (#4563)
clang can't figure out that fatal_error is noreturn itself and emits warnings: ../cpython/Python/pylifecycle.c:2116:1: warning: function declared 'noreturn' should not return [-Winvalid-noreturn] } ^ ../cpython/Python/pylifecycle.c:2125:1: warning: function declared 'noreturn' should not return [-Winvalid-noreturn] } ^
This commit is contained in:
parent
76fdac4c9f
commit
cef88b9c15
@ -2048,7 +2048,7 @@ fatal_output_debug(const char *msg)
|
||||
}
|
||||
#endif
|
||||
|
||||
static void
|
||||
static void _Py_NO_RETURN
|
||||
fatal_error(const char *prefix, const char *msg, int status)
|
||||
{
|
||||
const int fd = fileno(stderr);
|
||||
|
Loading…
Reference in New Issue
Block a user