Commit cef88b9c authored by Benjamin Peterson's avatar Benjamin Peterson Committed by GitHub

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]
}
^
parent 76fdac4c
...@@ -2048,7 +2048,7 @@ fatal_output_debug(const char *msg) ...@@ -2048,7 +2048,7 @@ fatal_output_debug(const char *msg)
} }
#endif #endif
static void static void _Py_NO_RETURN
fatal_error(const char *prefix, const char *msg, int status) fatal_error(const char *prefix, const char *msg, int status)
{ {
const int fd = fileno(stderr); const int fd = fileno(stderr);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment