]> granicus.if.org Git - python/commitdiff
bpo-36710: Fix compiler warning on PyThreadState_Delete() (GH-12962)
authorVictor Stinner <vstinner@redhat.com>
Fri, 26 Apr 2019 03:48:51 +0000 (05:48 +0200)
committerGitHub <noreply@github.com>
Fri, 26 Apr 2019 03:48:51 +0000 (05:48 +0200)
_PyThreadState_Delete() has no return value.

Python/pystate.c

index f964f4951b9cfde3f72bc0fdeb0c4273e2a524a5..e9c4c7d8376bf72aafa79e15e213de03c0775450 100644 (file)
@@ -826,7 +826,7 @@ _PyThreadState_Delete(_PyRuntimeState *runtime, PyThreadState *tstate)
 void
 PyThreadState_Delete(PyThreadState *tstate)
 {
-    return _PyThreadState_Delete(&_PyRuntime, tstate);
+    _PyThreadState_Delete(&_PyRuntime, tstate);
 }