diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-04-11 13:58:33 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-04-11 13:58:33 +0200 |
commit | 7b369afba9fecbf8a87a42375376d4ca8af7560c (patch) | |
tree | 5633949494ff207b4e7835ba6ab51164af66bf6f /testsuites/psxtmtests | |
parent | sapi: Fix unified workspace option (diff) | |
download | rtems-7b369afba9fecbf8a87a42375376d4ca8af7560c.tar.bz2 |
testsuites: Fix warnings
Diffstat (limited to 'testsuites/psxtmtests')
-rw-r--r-- | testsuites/psxtmtests/psxtmcond05/init.c | 1 | ||||
-rw-r--r-- | testsuites/psxtmtests/psxtmcond08/init.c | 5 | ||||
-rw-r--r-- | testsuites/psxtmtests/psxtmthread02/init.c | 5 |
3 files changed, 6 insertions, 5 deletions
diff --git a/testsuites/psxtmtests/psxtmcond05/init.c b/testsuites/psxtmtests/psxtmcond05/init.c index bf4de19b09..8941ee397f 100644 --- a/testsuites/psxtmtests/psxtmcond05/init.c +++ b/testsuites/psxtmtests/psxtmcond05/init.c @@ -12,6 +12,7 @@ #endif #include <timesys.h> +#include <pthread.h> #include <rtems/timerdrv.h> #include "test_support.h" diff --git a/testsuites/psxtmtests/psxtmcond08/init.c b/testsuites/psxtmtests/psxtmcond08/init.c index af970361b3..fe1fee7d84 100644 --- a/testsuites/psxtmtests/psxtmcond08/init.c +++ b/testsuites/psxtmtests/psxtmcond08/init.c @@ -27,6 +27,7 @@ #include <stdio.h> #include <time.h> #include <errno.h> +#include <sched.h> #include <timesys.h> #include <tmacros.h> #include <rtems/timerdrv.h> @@ -88,16 +89,14 @@ void *Middle( #elif defined(USE_TIMEDWAIT_WAIT_VALUE_IN_PAST) { - long end_time; - /* override sleepTime with something obviously in the past */ sleepTime.tv_sec = 0; sleepTime.tv_nsec = 5; /* this does all the work of timedwait but immediately returns */ rc = pthread_cond_timedwait( &CondID, &MutexID, &sleepTime ); - end_time = benchmark_timer_read(); rtems_test_assert(rc == ETIMEDOUT); + benchmark_timer_read(); } #endif diff --git a/testsuites/psxtmtests/psxtmthread02/init.c b/testsuites/psxtmtests/psxtmthread02/init.c index 41fb17f462..9e44873937 100644 --- a/testsuites/psxtmtests/psxtmthread02/init.c +++ b/testsuites/psxtmtests/psxtmthread02/init.c @@ -19,7 +19,7 @@ /* forward declarations to avoid warnings */ void *POSIX_Init(void *argument); void benchmark_pthread_create(void); -void thread(void *argument); +void *thread(void *argument); void benchmark_pthread_create(void) { @@ -46,11 +46,12 @@ void benchmark_pthread_create(void) } -void thread( +void *thread( void *argument ) { //Empty thread used in pthread_create(). + return NULL; } void *POSIX_Init( |