You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ac...@apache.org on 2026/03/24 13:56:31 UTC
(nuttx) branch master updated: sched/group_foreachchild.c: fix warning
This is an automated email from the ASF dual-hosted git repository.
acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new d72bb349f4a sched/group_foreachchild.c: fix warning
d72bb349f4a is described below
commit d72bb349f4af930e4c3649350232ffbe74a46980
Author: raiden00pl <ra...@railab.me>
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 <ra...@railab.me>
---
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);