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

Author: Philippe Gerum <r...@xenomai.org>
Date:   Tue Aug 14 12:26:03 2012 +0200

copperplate: fix build warnings with -Werror=unused-but-set-variable

---

 lib/copperplate/syncobj.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/lib/copperplate/syncobj.c b/lib/copperplate/syncobj.c
index 557c0cf..ccd161b 100644
--- a/lib/copperplate/syncobj.c
+++ b/lib/copperplate/syncobj.c
@@ -71,6 +71,7 @@ void monitor_exit(struct syncobj *sobj)
        int ret;
        ret = cobalt_monitor_exit(&sobj->core.monitor);
        assert(ret == 0);
+       (void)ret;
 }
 
 static inline
@@ -108,6 +109,7 @@ static inline void syncobj_init_corespec(struct syncobj 
*sobj)
        int flags = monitor_scope_attribute, ret;
        ret = cobalt_monitor_init(&sobj->core.monitor, flags);
        assert(ret == 0);
+       (void)ret;
 }
 
 static inline void syncobj_cleanup_corespec(struct syncobj *sobj)


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

Reply via email to