This is an automated email from the ASF dual-hosted git repository. xiaoxiang781216 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
commit 62b74502fe28bb493c7cee7f0576aa18c6ebeeda Author: fangpeina <[email protected]> AuthorDate: Tue Nov 18 23:02:58 2025 +0800 system/nxinit: fix uninitialized 'wstatus' warning reap_process() referenced an undeclared identifier 'wtatus' on the WIFSIGNALED branch (typo of 'wstatus'). Some toolchains then flagged a -Wmaybe-uninitialized on the surrounding wstatus use. Correct the typo so WIFSIGNALED/WTERMSIG operate on the actual wstatus value returned by waitpid(). Signed-off-by: fangpeina <[email protected]> --- system/nxinit/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/nxinit/init.c b/system/nxinit/init.c index 1a542f796..978b8a63b 100644 --- a/system/nxinit/init.c +++ b/system/nxinit/init.c @@ -90,7 +90,7 @@ static void reap_process(FAR struct service_manager_s *sm, status = "status"; ret = WEXITSTATUS(wstatus); } - else if (WIFSIGNALED(wtatus)) + else if (WIFSIGNALED(wstatus)) { status = "signal"; ret = WTERMSIG(wstatus);
