Module: xenomai-3
Branch: stable-3.0.x
Commit: 4336b93138754b0f4a6f4373ef187212948c1974
URL:    
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=4336b93138754b0f4a6f4373ef187212948c1974

Author: Philippe Gerum <r...@xenomai.org>
Date:   Sun Mar 12 10:24:58 2017 +0100

cobalt/synch: add __must_check annotation to sleep_on call

---

 include/cobalt/kernel/synch.h |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/cobalt/kernel/synch.h b/include/cobalt/kernel/synch.h
index f419698..f5ac217 100644
--- a/include/cobalt/kernel/synch.h
+++ b/include/cobalt/kernel/synch.h
@@ -138,9 +138,9 @@ static inline void xnsynch_register_cleanup(struct xnsynch 
*synch,
        synch->cleanup = handler;
 }
 
-int xnsynch_sleep_on(struct xnsynch *synch,
-                    xnticks_t timeout,
-                    xntmode_t timeout_mode);
+int __must_check xnsynch_sleep_on(struct xnsynch *synch,
+                                 xnticks_t timeout,
+                                 xntmode_t timeout_mode);
 
 struct xnthread *xnsynch_wakeup_one_sleeper(struct xnsynch *synch);
 


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

Reply via email to