Module: xenomai-3
Branch: next
Commit: 2bb250e12da1f1f88c17c7ee1c589088e26e8787
URL:    
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=2bb250e12da1f1f88c17c7ee1c589088e26e8787

Author: Philippe Gerum <r...@xenomai.org>
Date:   Fri Oct 31 14:33:50 2014 +0100

cobalt/posix/thread: silence spurious gcc warning

---

 kernel/cobalt/posix/thread.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/cobalt/posix/thread.c b/kernel/cobalt/posix/thread.c
index 0786ad3..e441371 100644
--- a/kernel/cobalt/posix/thread.c
+++ b/kernel/cobalt/posix/thread.c
@@ -246,7 +246,7 @@ pthread_setschedparam_ex(struct cobalt_thread *thread,
        struct xnsched_class *sched_class;
        union xnsched_policy_param param;
        xnticks_t tslice;
-       int ret;
+       int ret = 0;
        spl_t s;
 
        xnlock_get_irqsave(&nklock, s);


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git

Reply via email to