Skip to content

Commit 8146b6f

Browse files
committed
Remove unused variable
1 parent 462f97d commit 8146b6f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Python/pystate.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,6 @@ interpreter_clear(PyInterpreterState *interp, PyThreadState *tstate)
774774
{
775775
assert(interp != NULL);
776776
assert(tstate != NULL);
777-
_PyRuntimeState *runtime = interp->runtime;
778777

779778
/* XXX Conditions we need to enforce:
780779
@@ -1852,6 +1851,8 @@ _PyThreadState_RemoveExcept(PyThreadState *tstate)
18521851

18531852
#ifdef Py_GIL_DISABLED
18541853
assert(runtime->stoptheworld.world_stopped);
1854+
#else
1855+
assert(runtime != NULL);
18551856
#endif
18561857

18571858
INTERP_THREAD_LOCK(interp);
@@ -2336,7 +2337,6 @@ _PyEval_StartTheWorld(PyInterpreterState *interp)
23362337
int
23372338
PyThreadState_SetAsyncExc(unsigned long id, PyObject *exc)
23382339
{
2339-
_PyRuntimeState *runtime = &_PyRuntime;
23402340
PyInterpreterState *interp = _PyInterpreterState_GET();
23412341

23422342
/* Although the GIL is held, a few C API functions can be called

0 commit comments

Comments
 (0)