Skip to content

Commit 80c2c2d

Browse files
authored
gh-138122: Fix unused variable warning in threads.c (#142425)
1 parent 9e3d7cd commit 80c2c2d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Modules/_remote_debugging/threads.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,7 @@ unwind_stack_for_thread(
323323
#ifdef Py_GIL_DISABLED
324324
int active = GET_MEMBER(_thread_status, ts, unwinder->debug_offsets.thread_state.status).active;
325325
has_gil = active;
326+
(void)gil_requested; // unused
326327
#else
327328
// Read holds_gil directly from thread state
328329
has_gil = GET_MEMBER(int, ts, unwinder->debug_offsets.thread_state.holds_gil);

0 commit comments

Comments
 (0)