From e4937b993f12ef74549e3daec3db8be2e65bed3f Mon Sep 17 00:00:00 2001 From: v-maomingju Date: Mon, 22 Dec 2025 22:30:53 +0800 Subject: [PATCH] system/nxinit: fix unused variable warning fix the unused variable warnings for name and status in init.c. Signed-off-by: v-maomingju --- system/nxinit/init.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/system/nxinit/init.c b/system/nxinit/init.c index cc1f18132..6c7291e5e 100644 --- a/system/nxinit/init.c +++ b/system/nxinit/init.c @@ -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);