https://github.com/python/cpython/commit/bf95881b84662d3dcd35143495b9880962164fee
commit: bf95881b84662d3dcd35143495b9880962164fee
branch: main
author: Stan Ulbrych <[email protected]>
committer: StanFromIreland <[email protected]>
date: 2026-08-19T21:28:43+01:00
summary:

Remote Debugging: silence some unused function warnings (#149898)

files:
M Modules/_remote_debugging/subprocess.c
M Python/remote_debug.h

diff --git a/Modules/_remote_debugging/subprocess.c 
b/Modules/_remote_debugging/subprocess.c
index 056cc6773a88b4..1388a75a95c47b 100644
--- a/Modules/_remote_debugging/subprocess.c
+++ b/Modules/_remote_debugging/subprocess.c
@@ -96,7 +96,7 @@ pid_array_contains(pid_array_t *arr, pid_t pid)
 /* Find child PIDs using BFS traversal of the pid->ppid mapping.
  * all_pids and ppids must have the same count (parallel arrays).
  * Returns 0 on success, -1 on error. */
-static int
+UNUSED static int
 find_children_bfs(pid_t target_pid, int recursive,
                   pid_t *all_pids, pid_t *ppids, size_t pid_count,
                   pid_array_t *result)
diff --git a/Python/remote_debug.h b/Python/remote_debug.h
index 7b7380d25bf496..12c5963f97c0e6 100644
--- a/Python/remote_debug.h
+++ b/Python/remote_debug.h
@@ -183,7 +183,7 @@ _Py_RemoteDebug_ReadRemoteMemory(proc_handle_t *handle, 
uintptr_t remote_address
 typedef int (*section_validator_t)(proc_handle_t *handle, uintptr_t address);
 
 // Validate that a candidate address starts with _Py_Debug_Cookie.
-static int
+UNUSED static int
 _Py_RemoteDebug_ValidatePyRuntimeCookie(proc_handle_t *handle, uintptr_t 
address)
 {
     if (address == 0) {

_______________________________________________
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