summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2017-11-25 21:02:55 (GMT)
committerGitHub <noreply@github.com>2017-11-25 21:02:55 (GMT)
commitcef88b9c15cf387cf6a39a387a6868883409df4f (patch)
tree6a556d9fb8909aba526d700c861dfac01c755469 /Python
parent76fdac4c9f53eb8433a54bd3daf9f5cc2e702a44 (diff)
downloadcpython-cef88b9c15cf387cf6a39a387a6868883409df4f.zip
cpython-cef88b9c15cf387cf6a39a387a6868883409df4f.tar.gz
cpython-cef88b9c15cf387cf6a39a387a6868883409df4f.tar.bz2
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] } ^
Diffstat (limited to 'Python')
-rw-r--r--Python/pylifecycle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c
index 868ac84..b89cbc8 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);