Module: xenomai-forge
Branch: master
Commit: 96c4bbd5135ee73282cc3760e09ea7b986454b04
URL:    
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=96c4bbd5135ee73282cc3760e09ea7b986454b04

Author: Philippe Gerum <r...@xenomai.org>
Date:   Fri May  9 10:35:24 2014 +0200

cobalt/posix/sem: silence false warning

---

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

diff --git a/kernel/cobalt/posix/sem.c b/kernel/cobalt/posix/sem.c
index 8d6b4ed..2d64785 100644
--- a/kernel/cobalt/posix/sem.c
+++ b/kernel/cobalt/posix/sem.c
@@ -411,9 +411,9 @@ static inline int
 sem_wait_inner(xnhandle_t handle, int timed,
               const struct timespec __user *u_ts)
 {
+       struct timespec ts = { .tv_sec = 0, .tv_nsec = 0 };
        int pull_ts = 1, ret, info;
        struct cobalt_sem *sem;
-       struct timespec ts;
        xntmode_t tmode;
        spl_t s;
 


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

Reply via email to