]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-138122: Fix unused variable warning in threads.c (#142425)
authorSam Gross <colesbury@gmail.com>
Mon, 8 Dec 2025 19:05:11 +0000 (14:05 -0500)
committerGitHub <noreply@github.com>
Mon, 8 Dec 2025 19:05:11 +0000 (19:05 +0000)
Modules/_remote_debugging/threads.c

index 774338f9dc241e46a0669dc7d33d3cf064fa5c37..953c8a383f0cbcf03e82d53dcbf6fe4a32e42b6c 100644 (file)
@@ -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);