From cea7f50aefeebc9f3c3a596641d7b03bb6226ebd Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Fri, 26 Apr 2019 05:24:02 +0200 Subject: [PATCH] bpo-36710: Fix compiler warning on PyThreadState_Delete() _PyThreadState_Delete() has no return value. --- Python/pystate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python/pystate.c b/Python/pystate.c index f964f4951b9cfd..e9c4c7d8376bf7 100644 --- a/Python/pystate.c +++ b/Python/pystate.c @@ -826,7 +826,7 @@ _PyThreadState_Delete(_PyRuntimeState *runtime, PyThreadState *tstate) void PyThreadState_Delete(PyThreadState *tstate) { - return _PyThreadState_Delete(&_PyRuntime, tstate); + _PyThreadState_Delete(&_PyRuntime, tstate); }