Skip to content

Commit 6616710

Browse files
authored
gh-104233: Fix "unused variable" warning in ceval_gil.c (#104234)
1 parent f508800 commit 6616710

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Python/ceval_gil.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -547,9 +547,11 @@ _PyEval_FiniGIL(PyInterpreterState *interp)
547547
return;
548548
}
549549
else if (!interp->ceval.own_gil) {
550+
#ifdef Py_DEBUG
550551
PyInterpreterState *main_interp = _PyInterpreterState_Main();
551552
assert(interp != main_interp);
552553
assert(interp->ceval.gil == main_interp->ceval.gil);
554+
#endif
553555
interp->ceval.gil = NULL;
554556
return;
555557
}

0 commit comments

Comments
 (0)