system/nxinit: fix unused variable warning

fix the unused variable warnings for name and status in init.c.

Signed-off-by: v-maomingju <v-maomingju@xiaomi.com>
This commit is contained in:
v-maomingju 2025-12-22 22:30:53 +08:00 committed by Xiang Xiao
parent 21a8840a24
commit e4937b993f

View file

@ -78,6 +78,11 @@ static void reap_process(FAR struct service_manager_s *sm,
int ret;
int pid;
/* prevent unused warning */
UNUSED(name);
UNUSED(status);
for (; ; )
{
pid = waitpid(-1, &wstatus, WNOHANG);