gh-104233: Fix "unused variable" warning in ceval_gil.c (#104234)

This commit is contained in:
Nikita Sobolev 2023-05-06 17:58:32 +03:00 committed by GitHub
parent f5088006ca
commit 6616710731
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}