mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
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:
parent
21a8840a24
commit
e4937b993f
1 changed files with 5 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue