From: Victor Stinner Date: Fri, 26 Apr 2019 03:48:51 +0000 (+0200) Subject: bpo-36710: Fix compiler warning on PyThreadState_Delete() (GH-12962) X-Git-Tag: v3.8.0a4~97 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=99e69d44f499625786a2e6461a954adcd0037d69;p=python bpo-36710: Fix compiler warning on PyThreadState_Delete() (GH-12962) _PyThreadState_Delete() has no return value. --- diff --git a/Python/pystate.c b/Python/pystate.c index f964f4951b..e9c4c7d837 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); }