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

Author: Philippe Gerum <r...@xenomai.org>
Date:   Thu Dec 20 09:50:13 2012 +0100

lib/cobalt: silence pedantic warning

---

 lib/cobalt/printf.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/lib/cobalt/printf.c b/lib/cobalt/printf.c
index b186694..f9f2ecb 100644
--- a/lib/cobalt/printf.c
+++ b/lib/cobalt/printf.c
@@ -569,7 +569,7 @@ static void print_buffers(void)
        struct print_buffer *buffer;
        struct entry_head *head;
        off_t read_pos;
-       int len;
+       int len, ret;
 
        while (1) {
                buffer = get_next_buffer();
@@ -587,8 +587,9 @@ static void print_buffers(void)
                                syslog(head->priority,
                                       "%s", head->data);
                        } else {
-                               fwrite(head->data,
-                                      head->len, 1, head->dest);
+                               ret = fwrite(head->data,
+                                            head->len, 1, head->dest);
+                               (void)ret;
                        }
 
                        read_pos += sizeof(*head) + len;


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

Reply via email to