From cef88b9c15cf387cf6a39a387a6868883409df4f Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Sat, 25 Nov 2017 13:02:55 -0800 Subject: [PATCH] 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] } ^ --- Python/pylifecycle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c index 868ac8450d4..b89cbc88d4b 100644 --- a/Python/pylifecycle.c +++ b/Python/pylifecycle.c @@ -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);