Module: xenomai-rpm
Branch: for-upstream
Commit: 79cef4fc0b742a8dec0c1878ef1a801e9ba2206a
URL:    
http://git.xenomai.org/?p=xenomai-rpm.git;a=commit;h=79cef4fc0b742a8dec0c1878ef1a801e9ba2206a

Author: Philippe Gerum <r...@xenomai.org>
Date:   Mon Mar  8 10:37:48 2010 +0100

testsuite: silence harmless warnings

---

 src/testsuite/latency/latency.c       |    2 +-
 src/testsuite/switchtest/switchtest.c |    2 ++
 2 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/testsuite/latency/latency.c b/src/testsuite/latency/latency.c
index f397b42..4df8e7f 100644
--- a/src/testsuite/latency/latency.c
+++ b/src/testsuite/latency/latency.c
@@ -464,7 +464,7 @@ void mode_sw(int sig)
                return;
        }
 
-       write(STDERR_FILENO, buffer, sizeof(buffer));
+       n = write(STDERR_FILENO, buffer, sizeof(buffer));
 #ifndef __UCLIBC__
        n = backtrace(bt, sizeof(bt)/sizeof(bt[0]));
        backtrace_symbols_fd(bt, n, STDERR_FILENO);
diff --git a/src/testsuite/switchtest/switchtest.c 
b/src/testsuite/switchtest/switchtest.c
index de41b86..1e69df4 100644
--- a/src/testsuite/switchtest/switchtest.c
+++ b/src/testsuite/switchtest/switchtest.c
@@ -396,6 +396,8 @@ static void *fpu_stress(void *cookie)
                }
                pthread_testcancel();
        }
+
+       return NULL;
 }
 
 static void *rtup(void *cookie)


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

Reply via email to