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

Author: Philippe Gerum <r...@xenomai.org>
Date:   Thu Oct  1 09:32:14 2015 +0200

copperplate/heapobj: fix unused_result warning

---

 lib/copperplate/heapobj-pshared.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/copperplate/heapobj-pshared.c 
b/lib/copperplate/heapobj-pshared.c
index 38b4bca..8c5dac6 100644
--- a/lib/copperplate/heapobj-pshared.c
+++ b/lib/copperplate/heapobj-pshared.c
@@ -706,7 +706,8 @@ reset:
         * former session with more permissive access rules, such as
         * group-controlled access.
         */
-       fchown(fd, geteuid(), getegid());
+       ret = fchown(fd, geteuid(), getegid());
+       (void)ret;
 init:
        ret = ftruncate(fd, 0);  /* Clear all previous contents if any. */
        if (__bterrno(ret))


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

Reply via email to