From d72bb349f4af930e4c3649350232ffbe74a46980 Mon Sep 17 00:00:00 2001 From: raiden00pl Date: Tue, 24 Mar 2026 11:06:02 +0100 Subject: [PATCH] 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 --- 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);