From 2a4903fcce54c25807d362dbbbcfb32d0b494f9f Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Thu, 30 Jan 2020 13:09:11 +0100 Subject: 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() --- Include/cpython/object.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Include/cpython') 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, -- cgit v1.2.1