mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
gh-104233: Fix "unused variable" warning in ceval_gil.c
(#104234)
This commit is contained in:
parent
f5088006ca
commit
6616710731
1 changed files with 2 additions and 0 deletions
|
@ -547,9 +547,11 @@ _PyEval_FiniGIL(PyInterpreterState *interp)
|
|||
return;
|
||||
}
|
||||
else if (!interp->ceval.own_gil) {
|
||||
#ifdef Py_DEBUG
|
||||
PyInterpreterState *main_interp = _PyInterpreterState_Main();
|
||||
assert(interp != main_interp);
|
||||
assert(interp->ceval.gil == main_interp->ceval.gil);
|
||||
#endif
|
||||
interp->ceval.gil = NULL;
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue