← Commit list

a9e5c43b8

Denys Vlasenko
Denys Vlasenko
2011-03-27
FAILED Duration: 229s

Subject

pstree: fix "warning: 'handle_thread' defined but not used"

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

procps/pstree.c+2 -0
@@ -339,12 +339,14 @@ static void dump_by_user(PROC *current, uid_t uid)
dump_by_user(walk->child, uid);
}
+#if ENABLE_FEATURE_SHOW_THREADS
static void handle_thread(const char *comm, pid_t pid, pid_t ppid, uid_t uid)
{
char threadname[COMM_LEN + 2];
sprintf(threadname, "{%.*s}", COMM_LEN - 2, comm);
add_proc(threadname, pid, ppid, uid/*, 1*/);
}
+#endif
static void mread_proc(void)
{