summaryrefslogtreecommitdiff
path: root/Include/cpython
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-01-30 13:09:11 +0100
committerGitHub <noreply@github.com>2020-01-30 13:09:11 +0100
commit2a4903fcce54c25807d362dbbbcfb32d0b494f9f (patch)
tree9ed04fc7af4e5926778b0764be5078a1f6338b64 /Include/cpython
parent17c68b8107e348aeaaa05f7ac5072cacff916022 (diff)
downloadcpython-git-2a4903fcce54c25807d362dbbbcfb32d0b494f9f.tar.gz
bpo-38631: Add _Py_NO_RETURN to functions calling Py_FatalError() (GH-18278)
Add _Py_NO_RETURN to functions calling Py_FatalError(): * _PyObject_AssertFailed() * dummy_dealloc() * faulthandler_fatal_error_thread() * none_dealloc() * notimplemented_dealloc()
Diffstat (limited to 'Include/cpython')
-rw-r--r--Include/cpython/object.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/cpython/object.h b/Include/cpython/object.h
index 75e55995b5..dc8fd6fa89 100644
--- a/Include/cpython/object.h
+++ b/Include/cpython/object.h
@@ -443,7 +443,7 @@ _PyObject_DebugTypeStats(FILE *out);
NDEBUG against a Python built with NDEBUG defined.
msg, expr and function can be NULL. */
-PyAPI_FUNC(void) _PyObject_AssertFailed(
+PyAPI_FUNC(void) _Py_NO_RETURN _PyObject_AssertFailed(
PyObject *obj,
const char *expr,
const char *msg,