https://github.com/python/cpython/commit/80c2c2dfb595e5f38a9f841b4b2bf1f3972d5ecb
commit: 80c2c2dfb595e5f38a9f841b4b2bf1f3972d5ecb
branch: main
author: Sam Gross <[email protected]>
committer: pablogsal <[email protected]>
date: 2025-12-08T19:05:11Z
summary:

gh-138122: Fix unused variable warning in threads.c (#142425)

files:
M Modules/_remote_debugging/threads.c

diff --git a/Modules/_remote_debugging/threads.c 
b/Modules/_remote_debugging/threads.c
index 774338f9dc241e..953c8a383f0cbc 100644
--- a/Modules/_remote_debugging/threads.c
+++ b/Modules/_remote_debugging/threads.c
@@ -323,6 +323,7 @@ unwind_stack_for_thread(
 #ifdef Py_GIL_DISABLED
     int active = GET_MEMBER(_thread_status, ts, 
unwinder->debug_offsets.thread_state.status).active;
     has_gil = active;
+    (void)gil_requested;  // unused
 #else
     // Read holds_gil directly from thread state
     has_gil = GET_MEMBER(int, ts, 
unwinder->debug_offsets.thread_state.holds_gil);

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to