Skip to content

Commit bf95881

Browse files
Remote Debugging: silence some unused function warnings (#149898)
1 parent a2c9a3b commit bf95881

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Modules/_remote_debugging/subprocess.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ pid_array_contains(pid_array_t *arr, pid_t pid)
9696
/* Find child PIDs using BFS traversal of the pid->ppid mapping.
9797
* all_pids and ppids must have the same count (parallel arrays).
9898
* Returns 0 on success, -1 on error. */
99-
static int
99+
UNUSED static int
100100
find_children_bfs(pid_t target_pid, int recursive,
101101
pid_t *all_pids, pid_t *ppids, size_t pid_count,
102102
pid_array_t *result)

Python/remote_debug.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ _Py_RemoteDebug_ReadRemoteMemory(proc_handle_t *handle, uintptr_t remote_address
183183
typedef int (*section_validator_t)(proc_handle_t *handle, uintptr_t address);
184184

185185
// Validate that a candidate address starts with _Py_Debug_Cookie.
186-
static int
186+
UNUSED static int
187187
_Py_RemoteDebug_ValidatePyRuntimeCookie(proc_handle_t *handle, uintptr_t address)
188188
{
189189
if (address == 0) {

0 commit comments

Comments
 (0)