This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch releases/12.13
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/releases/12.13 by this push:
new c0d69399e10 sched/group_foreachchild.c: fix warning
c0d69399e10 is described below
commit c0d69399e10068e26270de25dc7b6d3a07ebfbf0
Author: raiden00pl <[email protected]>
AuthorDate: Tue Mar 24 11:06:02 2026 +0100
sched/group_foreachchild.c: fix warning
fix compilation warning:
group/group_foreachchild.c:85:10: warning: 'ret' may be used
uninitialized [-Wmaybe-uninitialized]
85 | return ret;
| ^~~
group/group_foreachchild.c:67:7: note: 'ret' was declared here
67 | int ret;
Signed-off-by: raiden00pl <[email protected]>
---
sched/group/group_foreachchild.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sched/group/group_foreachchild.c b/sched/group/group_foreachchild.c
index 8b830837833..a0cf1f25458 100644
--- a/sched/group/group_foreachchild.c
+++ b/sched/group/group_foreachchild.c
@@ -64,7 +64,7 @@ int group_foreachchild(FAR struct task_group_s *group,
{
FAR sq_entry_t *curr;
FAR sq_entry_t *next;
- int ret;
+ int ret = OK;
DEBUGASSERT(group);