summaryrefslogtreecommitdiffstats
path: root/Objects/setobject.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-01-30 12:09:11 (GMT)
committerGitHub <noreply@github.com>2020-01-30 12:09:11 (GMT)
commit2a4903fcce54c25807d362dbbbcfb32d0b494f9f (patch)
tree9ed04fc7af4e5926778b0764be5078a1f6338b64 /Objects/setobject.c
parent17c68b8107e348aeaaa05f7ac5072cacff916022 (diff)
downloadcpython-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/setobject.c')
-rw-r--r--Objects/setobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/setobject.c b/Objects/setobject.c
index 924885d..bb7c0b8 100644
--- a/Objects/setobject.c
+++ b/Objects/setobject.c
@@ -2529,7 +2529,7 @@ dummy_repr(PyObject *op)
return PyUnicode_FromString("<dummy key>");
}
-static void
+static void _Py_NO_RETURN
dummy_dealloc(PyObject* ignore)
{
Py_FatalError("deallocating <dummy key>");