diff options
author | Victor Stinner <vstinner@python.org> | 2020-01-30 12:09:11 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-30 12:09:11 (GMT) |
commit | 2a4903fcce54c25807d362dbbbcfb32d0b494f9f (patch) | |
tree | 9ed04fc7af4e5926778b0764be5078a1f6338b64 /Objects/object.c | |
parent | 17c68b8107e348aeaaa05f7ac5072cacff916022 (diff) | |
download | cpython-2a4903fcce54c25807d362dbbbcfb32d0b494f9f.zip cpython-2a4903fcce54c25807d362dbbbcfb32d0b494f9f.tar.gz cpython-2a4903fcce54c25807d362dbbbcfb32d0b494f9f.tar.bz2 |
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 'Objects/object.c')
-rw-r--r-- | Objects/object.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Objects/object.c b/Objects/object.c index c5d28e5..67a6386 100644 --- a/Objects/object.c +++ b/Objects/object.c @@ -1646,7 +1646,7 @@ none_repr(PyObject *op) } /* ARGUSED */ -static void +static void _Py_NO_RETURN none_dealloc(PyObject* ignore) { /* This should never get called, but we also don't want to SEGV if @@ -1784,7 +1784,7 @@ notimplemented_new(PyTypeObject *type, PyObject *args, PyObject *kwargs) Py_RETURN_NOTIMPLEMENTED; } -static void +static void _Py_NO_RETURN notimplemented_dealloc(PyObject* ignore) { /* This should never get called, but we also don't want to SEGV if @@ -2225,7 +2225,7 @@ _PyTrash_thread_destroy_chain(void) } -void +void _Py_NO_RETURN _PyObject_AssertFailed(PyObject *obj, const char *expr, const char *msg, const char *file, int line, const char *function) { |