[rtems commit] psxtmtests - Eliminate missing prototype warnings
Joel Sherrill
joel at rtems.org
Fri May 11 14:13:04 UTC 2012
Module: rtems
Branch: master
Commit: 991a3cc1c9e7a141f08995e1f3cb6f23f2da2a3b
Changeset: http://git.rtems.org/rtems/commit/?id=991a3cc1c9e7a141f08995e1f3cb6f23f2da2a3b
Author: Joel Sherrill <joel.sherrill at oarcorp.com>
Date: Fri May 11 09:15:40 2012 -0500
psxtmtests - Eliminate missing prototype warnings
---
testsuites/psxtmtests/psxtmbarrier01/init.c | 6 +++++-
testsuites/psxtmtests/psxtmbarrier02/init.c | 7 ++++++-
testsuites/psxtmtests/psxtmbarrier03/init.c | 6 +++++-
testsuites/psxtmtests/psxtmkey01/init.c | 5 ++++-
testsuites/psxtmtests/psxtmkey02/init.c | 7 ++++++-
testsuites/psxtmtests/psxtmmq01/init.c | 5 ++++-
testsuites/psxtmtests/psxtmmutex01/init.c | 5 ++++-
testsuites/psxtmtests/psxtmmutex02/init.c | 7 ++++++-
testsuites/psxtmtests/psxtmmutex03/init.c | 11 +++++++++--
testsuites/psxtmtests/psxtmmutex04/init.c | 7 ++++++-
testsuites/psxtmtests/psxtmmutex05/init.c | 6 +++++-
testsuites/psxtmtests/psxtmmutex06/init.c | 7 ++++++-
testsuites/psxtmtests/psxtmmutex07/init.c | 7 ++++++-
testsuites/psxtmtests/psxtmnanosleep01/init.c | 5 ++++-
testsuites/psxtmtests/psxtmnanosleep02/init.c | 7 ++++++-
testsuites/psxtmtests/psxtmrwlock01/init.c | 5 ++++-
testsuites/psxtmtests/psxtmrwlock02/init.c | 7 ++++++-
testsuites/psxtmtests/psxtmrwlock03/init.c | 7 ++++++-
testsuites/psxtmtests/psxtmrwlock04/init.c | 7 ++++++-
testsuites/psxtmtests/psxtmrwlock05/init.c | 7 ++++++-
testsuites/psxtmtests/psxtmrwlock06/init.c | 6 +++++-
testsuites/psxtmtests/psxtmrwlock07/init.c | 7 ++++++-
testsuites/psxtmtests/psxtmsem01/init.c | 5 ++++-
testsuites/psxtmtests/psxtmsem02/init.c | 5 ++++-
testsuites/psxtmtests/psxtmsem03/init.c | 7 ++++++-
testsuites/psxtmtests/psxtmsem04/init.c | 6 +++++-
testsuites/psxtmtests/psxtmsem05/init.c | 7 ++++++-
testsuites/psxtmtests/psxtmsleep01/init.c | 5 ++++-
testsuites/psxtmtests/psxtmsleep02/init.c | 7 ++++++-
testsuites/psxtmtests/psxtmthread01/init.c | 6 +++++-
testsuites/psxtmtests/psxtmthread03/init.c | 7 ++++++-
31 files changed, 167 insertions(+), 32 deletions(-)
diff --git a/testsuites/psxtmtests/psxtmbarrier01/init.c b/testsuites/psxtmtests/psxtmbarrier01/init.c
index ccb7703..8937f6c 100644
--- a/testsuites/psxtmtests/psxtmbarrier01/init.c
+++ b/testsuites/psxtmtests/psxtmbarrier01/init.c
@@ -1,5 +1,5 @@
/*
- * COPYRIGHT (c) 1989-2011.
+ * COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -16,6 +16,10 @@
#include "test_support.h"
#include <pthread.h>
+/* forward declarations to avoid warnings */
+void *POSIX_Init(void *argument);
+static void benchmark_pthread_barrier_init(void);
+
pthread_barrier_t barrier;
static void benchmark_pthread_barrier_init(void)
diff --git a/testsuites/psxtmtests/psxtmbarrier02/init.c b/testsuites/psxtmtests/psxtmbarrier02/init.c
index aefeb07..1f1ad26 100644
--- a/testsuites/psxtmtests/psxtmbarrier02/init.c
+++ b/testsuites/psxtmtests/psxtmbarrier02/init.c
@@ -1,5 +1,5 @@
/*
- * COPYRIGHT (c) 1989-2011.
+ * COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -19,6 +19,11 @@
#include <pthread.h>
#include <sched.h>
+/* forward declarations to avoid warnings */
+void *POSIX_Init(void *argument);
+void *Middle(void *argument);
+void *Low(void *argument);
+
pthread_barrier_t barrier;
void *Low(
diff --git a/testsuites/psxtmtests/psxtmbarrier03/init.c b/testsuites/psxtmtests/psxtmbarrier03/init.c
index 303c31c..4b924c8 100644
--- a/testsuites/psxtmtests/psxtmbarrier03/init.c
+++ b/testsuites/psxtmtests/psxtmbarrier03/init.c
@@ -1,5 +1,5 @@
/*
- * COPYRIGHT (c) 1989-2011.
+ * COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -19,6 +19,10 @@
#include <sched.h>
#include <rtems/timerdrv.h>
+/* forward declarations to avoid warnings */
+void *POSIX_Init(void *argument);
+void *Blocker(void *argument);
+
#define N 2
pthread_barrier_t barrier;
diff --git a/testsuites/psxtmtests/psxtmkey01/init.c b/testsuites/psxtmtests/psxtmkey01/init.c
index ca4f866..b4014ca 100644
--- a/testsuites/psxtmtests/psxtmkey01/init.c
+++ b/testsuites/psxtmtests/psxtmkey01/init.c
@@ -1,5 +1,5 @@
/*
- * COPYRIGHT (c) 1989-2011.
+ * COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -17,6 +17,9 @@
#include <pthread.h>
#include "test_support.h"
+/* forward declarations to avoid warnings */
+void *POSIX_Init(void *argument);
+
pthread_key_t Key;
static void benchmark_pthread_key_create(void)
diff --git a/testsuites/psxtmtests/psxtmkey02/init.c b/testsuites/psxtmtests/psxtmkey02/init.c
index f4c5909..820c36b 100644
--- a/testsuites/psxtmtests/psxtmkey02/init.c
+++ b/testsuites/psxtmtests/psxtmkey02/init.c
@@ -1,5 +1,5 @@
/*
- * COPYRIGHT (c) 1989-2011.
+ * COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -17,6 +17,11 @@
#include <pthread.h>
#include "test_support.h"
+/* forward declarations to avoid warnings */
+void *POSIX_Init(void *argument);
+void benchmark_pthread_setspecific(void *value_p);
+void benchmark_pthread_getspecific( void *expected );
+
pthread_key_t Key;
int Value1;
diff --git a/testsuites/psxtmtests/psxtmmq01/init.c b/testsuites/psxtmtests/psxtmmq01/init.c
index 584a0a2..9510d32 100644
--- a/testsuites/psxtmtests/psxtmmq01/init.c
+++ b/testsuites/psxtmtests/psxtmmq01/init.c
@@ -1,5 +1,5 @@
/*
- * COPYRIGHT (c) 1989-2011.
+ * COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -19,6 +19,9 @@
#include <mqueue.h>
#include <signal.h> /* signal facilities */
+/* forward declarations to avoid warnings */
+void *POSIX_Init(void *argument);
+
#define MQ_MAXMSG 1
#define MQ_MSGSIZE sizeof(int)
diff --git a/testsuites/psxtmtests/psxtmmutex01/init.c b/testsuites/psxtmtests/psxtmmutex01/init.c
index 6fb5d5f..0f623d0 100644
--- a/testsuites/psxtmtests/psxtmmutex01/init.c
+++ b/testsuites/psxtmtests/psxtmmutex01/init.c
@@ -1,5 +1,5 @@
/*
- * COPYRIGHT (c) 1989-2011.
+ * COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -17,6 +17,9 @@
#include <pthread.h>
#include "test_support.h"
+/* forward declarations to avoid warnings */
+void *POSIX_Init(void *argument);
+
pthread_mutex_t MutexId;
static void test_mutex_create(void)
diff --git a/testsuites/psxtmtests/psxtmmutex02/init.c b/testsuites/psxtmtests/psxtmmutex02/init.c
index 941b37d..f11b2dc 100644
--- a/testsuites/psxtmtests/psxtmmutex02/init.c
+++ b/testsuites/psxtmtests/psxtmmutex02/init.c
@@ -1,5 +1,5 @@
/*
- * COPYRIGHT (c) 1989-2010.
+ * COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -19,6 +19,11 @@
#include <sched.h>
#include <rtems/timerdrv.h>
+/* forward declarations to avoid warnings */
+void *POSIX_Init(void *argument);
+void *Middle(void *argument);
+void *Low(void *argument);
+
pthread_mutex_t MutexId;
void *Low(
diff --git a/testsuites/psxtmtests/psxtmmutex03/init.c b/testsuites/psxtmtests/psxtmmutex03/init.c
index 768e716..d80fd85 100644
--- a/testsuites/psxtmtests/psxtmmutex03/init.c
+++ b/testsuites/psxtmtests/psxtmmutex03/init.c
@@ -1,5 +1,5 @@
/*
- * COPYRIGHT (c) 1989-2011.
+ * COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -17,6 +17,14 @@
#include <pthread.h>
#include "test_support.h"
+/* forward declarations to avoid warnings */
+void *POSIX_Init(void *argument);
+void benchmark_mutex_lock_available(void);
+void benchmark_mutex_unlock_no_threads_waiting(void);
+void benchmark_mutex_trylock_available(void);
+void benchmark_mutex_trylock_not_available(void);
+void benchmark_mutex_timedlock_available(void);
+
pthread_mutex_t MutexId;
void benchmark_mutex_lock_available(void)
@@ -76,7 +84,6 @@ void benchmark_mutex_trylock_available(void)
);
}
-
void benchmark_mutex_trylock_not_available(void)
{
benchmark_timer_t end_time;
diff --git a/testsuites/psxtmtests/psxtmmutex04/init.c b/testsuites/psxtmtests/psxtmmutex04/init.c
index 9608891..7f73f7c 100644
--- a/testsuites/psxtmtests/psxtmmutex04/init.c
+++ b/testsuites/psxtmtests/psxtmmutex04/init.c
@@ -1,5 +1,5 @@
/*
- * COPYRIGHT (c) 1989-2011.
+ * COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -19,6 +19,11 @@
#include <pthread.h>
#include <sched.h>
+/* forward declarations to avoid warnings */
+void *POSIX_Init(void *argument);
+void *Middle(void *argument);
+void *Low(void *argument);
+
pthread_mutex_t MutexId;
void *Low(
diff --git a/testsuites/psxtmtests/psxtmmutex05/init.c b/testsuites/psxtmtests/psxtmmutex05/init.c
index ffca065..11c2074 100644
--- a/testsuites/psxtmtests/psxtmmutex05/init.c
+++ b/testsuites/psxtmtests/psxtmmutex05/init.c
@@ -1,5 +1,5 @@
/*
- * COPYRIGHT (c) 1989-2011.
+ * COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -19,6 +19,10 @@
#include <sched.h>
#include <rtems/timerdrv.h>
+/* forward declarations to avoid warnings */
+void *POSIX_Init(void *argument);
+void *Blocker(void *argument);
+
pthread_mutex_t MutexId;
void *Blocker(
diff --git a/testsuites/psxtmtests/psxtmmutex06/init.c b/testsuites/psxtmtests/psxtmmutex06/init.c
index 87d0832..73b4cb3 100644
--- a/testsuites/psxtmtests/psxtmmutex06/init.c
+++ b/testsuites/psxtmtests/psxtmmutex06/init.c
@@ -1,5 +1,5 @@
/*
- * COPYRIGHT (c) 1989-2011.
+ * COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -19,6 +19,11 @@
#include <sched.h>
#include <rtems/timerdrv.h>
+/* forward declarations to avoid warnings */
+void *POSIX_Init(void *argument);
+void *Middle(void *argument);
+void *Low(void *argument);
+
pthread_mutex_t MutexId;
void *Low(
diff --git a/testsuites/psxtmtests/psxtmmutex07/init.c b/testsuites/psxtmtests/psxtmmutex07/init.c
index f247b72..9d21965 100644
--- a/testsuites/psxtmtests/psxtmmutex07/init.c
+++ b/testsuites/psxtmtests/psxtmmutex07/init.c
@@ -1,5 +1,5 @@
/*
- * COPYRIGHT (c) 1989-2011.
+ * COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -17,6 +17,11 @@
#include <pthread.h>
#include "test_support.h"
+/* forward declarations to avoid warnings */
+void *POSIX_Init(void *argument);
+void test_mutex_setprioceiling(void);
+void test_mutex_getprioceiling(void);
+
pthread_mutex_t MutexId;
void test_mutex_setprioceiling(void)
diff --git a/testsuites/psxtmtests/psxtmnanosleep01/init.c b/testsuites/psxtmtests/psxtmnanosleep01/init.c
index 1aaad73..37972c0 100644
--- a/testsuites/psxtmtests/psxtmnanosleep01/init.c
+++ b/testsuites/psxtmtests/psxtmnanosleep01/init.c
@@ -1,5 +1,5 @@
/*
- * COPYRIGHT (c) 1989-2011.
+ * COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -15,6 +15,9 @@
#include <rtems/timerdrv.h>
#include "test_support.h"
+/* forward declarations to avoid warnings */
+void *POSIX_Init(void *argument);
+
void *POSIX_Init(
void *argument
)
diff --git a/testsuites/psxtmtests/psxtmnanosleep02/init.c b/testsuites/psxtmtests/psxtmnanosleep02/init.c
index 10982e5..029ffcd 100644
--- a/testsuites/psxtmtests/psxtmnanosleep02/init.c
+++ b/testsuites/psxtmtests/psxtmnanosleep02/init.c
@@ -1,5 +1,5 @@
/*
- * COPYRIGHT (c) 1989-2011.
+ * COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -17,6 +17,11 @@
#include <pthread.h>
+/* forward declarations to avoid warnings */
+void *POSIX_Init(void *argument);
+void *Middle(void *argument);
+void *Low(void *argument);
+
void *Low(
void *argument
)
diff --git a/testsuites/psxtmtests/psxtmrwlock01/init.c b/testsuites/psxtmtests/psxtmrwlock01/init.c
index 543825d..bdc6fe9 100644
--- a/testsuites/psxtmtests/psxtmrwlock01/init.c
+++ b/testsuites/psxtmtests/psxtmrwlock01/init.c
@@ -1,5 +1,5 @@
/*
- * COPYRIGHT (c) 1989-2011.
+ * COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -16,6 +16,9 @@
#include <pthread.h>
#include "test_support.h"
+/* forward declarations to avoid warnings */
+void *POSIX_Init(void *argument);
+
pthread_rwlock_t rwlock;
static void benchmark_pthread_rwlock_init(void)
diff --git a/testsuites/psxtmtests/psxtmrwlock02/init.c b/testsuites/psxtmtests/psxtmrwlock02/init.c
index c40c2af..5623663 100644
--- a/testsuites/psxtmtests/psxtmrwlock02/init.c
+++ b/testsuites/psxtmtests/psxtmrwlock02/init.c
@@ -1,5 +1,5 @@
/*
- * COPYRIGHT (c) 1989-2011.
+ * COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -19,6 +19,11 @@
#include <rtems/timerdrv.h>
#include "test_support.h"
+/* forward declarations to avoid warnings */
+void *POSIX_Init(void *argument);
+void *Middle(void *argument);
+void *Low(void *argument);
+
pthread_rwlock_t rwlock;
void *Low(
diff --git a/testsuites/psxtmtests/psxtmrwlock03/init.c b/testsuites/psxtmtests/psxtmrwlock03/init.c
index 14b5c3a..34a8da5 100644
--- a/testsuites/psxtmtests/psxtmrwlock03/init.c
+++ b/testsuites/psxtmtests/psxtmrwlock03/init.c
@@ -1,5 +1,5 @@
/*
- * COPYRIGHT (c) 1989-2011.
+ * COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -19,6 +19,11 @@
#include <rtems/timerdrv.h>
#include "test_support.h"
+/* forward declarations to avoid warnings */
+void *POSIX_Init(void *argument);
+void *Middle(void *argument);
+void *Low(void *argument);
+
pthread_rwlock_t rwlock;
struct timespec abstime;
diff --git a/testsuites/psxtmtests/psxtmrwlock04/init.c b/testsuites/psxtmtests/psxtmrwlock04/init.c
index 939bec3..1f91382 100644
--- a/testsuites/psxtmtests/psxtmrwlock04/init.c
+++ b/testsuites/psxtmtests/psxtmrwlock04/init.c
@@ -1,5 +1,5 @@
/*
- * COPYRIGHT (c) 1989-2011.
+ * COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -19,6 +19,11 @@
#include <rtems/timerdrv.h>
#include "test_support.h"
+/* forward declarations to avoid warnings */
+void *POSIX_Init(void *argument);
+void *Middle(void *argument);
+void *Low(void *argument);
+
pthread_rwlock_t rwlock;
void *Low(
diff --git a/testsuites/psxtmtests/psxtmrwlock05/init.c b/testsuites/psxtmtests/psxtmrwlock05/init.c
index 639add5..986b0e0 100644
--- a/testsuites/psxtmtests/psxtmrwlock05/init.c
+++ b/testsuites/psxtmtests/psxtmrwlock05/init.c
@@ -1,5 +1,5 @@
/*
- * COPYRIGHT (c) 1989-2011.
+ * COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -19,6 +19,11 @@
#include <rtems/timerdrv.h>
#include "test_support.h"
+/* forward declarations to avoid warnings */
+void *POSIX_Init(void *argument);
+void *Middle(void *argument);
+void *Low(void *argument);
+
pthread_rwlock_t rwlock;
struct timespec abstime;
diff --git a/testsuites/psxtmtests/psxtmrwlock06/init.c b/testsuites/psxtmtests/psxtmrwlock06/init.c
index 9c7ea53..fab7434 100644
--- a/testsuites/psxtmtests/psxtmrwlock06/init.c
+++ b/testsuites/psxtmtests/psxtmrwlock06/init.c
@@ -1,5 +1,5 @@
/*
- * COPYRIGHT (c) 1989-2011.
+ * COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -19,6 +19,10 @@
#include "test_support.h"
#include <rtems/timerdrv.h>
+/* forward declarations to avoid warnings */
+void *POSIX_Init(void *argument);
+void *Blocker(void *argument);
+
pthread_rwlock_t rwlock;
void *Blocker(
diff --git a/testsuites/psxtmtests/psxtmrwlock07/init.c b/testsuites/psxtmtests/psxtmrwlock07/init.c
index da9a5a2..93bf47e 100644
--- a/testsuites/psxtmtests/psxtmrwlock07/init.c
+++ b/testsuites/psxtmtests/psxtmrwlock07/init.c
@@ -1,5 +1,5 @@
/*
- * COPYRIGHT (c) 1989-2011.
+ * COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -19,6 +19,11 @@
#include <sched.h>
#include <rtems/timerdrv.h>
+/* forward declarations to avoid warnings */
+void *POSIX_Init(void *argument);
+void *Middle(void *argument);
+void *Low(void *argument);
+
pthread_rwlock_t rwlock;
void *Low(
diff --git a/testsuites/psxtmtests/psxtmsem01/init.c b/testsuites/psxtmtests/psxtmsem01/init.c
index bbcd270..f3a852f 100644
--- a/testsuites/psxtmtests/psxtmsem01/init.c
+++ b/testsuites/psxtmtests/psxtmsem01/init.c
@@ -1,5 +1,5 @@
/*
- * COPYRIGHT (c) 1989-2011.
+ * COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -19,6 +19,9 @@
#include <rtems/timerdrv.h>
#include "test_support.h"
+/* forward declarations to avoid warnings */
+void *POSIX_Init(void *argument);
+
#define MAX_SEMS 2
sem_t sem1;
diff --git a/testsuites/psxtmtests/psxtmsem02/init.c b/testsuites/psxtmtests/psxtmsem02/init.c
index 474216b..9a1fbda 100644
--- a/testsuites/psxtmtests/psxtmsem02/init.c
+++ b/testsuites/psxtmtests/psxtmsem02/init.c
@@ -1,5 +1,5 @@
/*
- * COPYRIGHT (c) 1989-2011.
+ * COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -19,6 +19,9 @@
#include <rtems/timerdrv.h>
#include "test_support.h"
+/* forward declarations to avoid warnings */
+void *POSIX_Init(void *argument);
+
sem_t sem1;
sem_t *n_sem1;
diff --git a/testsuites/psxtmtests/psxtmsem03/init.c b/testsuites/psxtmtests/psxtmsem03/init.c
index 94637a4..58864bb 100644
--- a/testsuites/psxtmtests/psxtmsem03/init.c
+++ b/testsuites/psxtmtests/psxtmsem03/init.c
@@ -1,5 +1,5 @@
/*
- * COPYRIGHT (c) 1989-2011.
+ * COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -21,6 +21,11 @@
#include <pthread.h>
#include <sched.h>
+/* forward declarations to avoid warnings */
+void *POSIX_Init(void *argument);
+void *Middle(void *argument);
+void *Low(void *argument);
+
#define MAX_SEMS 2
sem_t sem1;
diff --git a/testsuites/psxtmtests/psxtmsem04/init.c b/testsuites/psxtmtests/psxtmsem04/init.c
index c41adb1..649ca45 100644
--- a/testsuites/psxtmtests/psxtmsem04/init.c
+++ b/testsuites/psxtmtests/psxtmsem04/init.c
@@ -1,5 +1,5 @@
/*
- * COPYRIGHT (c) 1989-2011.
+ * COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -22,6 +22,10 @@
#include <sched.h>
#include <rtems/timerdrv.h>
+/* forward declarations to avoid warnings */
+void *POSIX_Init(void *argument);
+void *Blocker(void *argument);
+
#define MAX_SEMS 2
sem_t sem1;
diff --git a/testsuites/psxtmtests/psxtmsem05/init.c b/testsuites/psxtmtests/psxtmsem05/init.c
index 56d94c3..0d69456 100644
--- a/testsuites/psxtmtests/psxtmsem05/init.c
+++ b/testsuites/psxtmtests/psxtmsem05/init.c
@@ -1,5 +1,5 @@
/*
- * COPYRIGHT (c) 1989-2011.
+ * COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -22,6 +22,11 @@
#include <sched.h>
#include <rtems/timerdrv.h>
+/* forward declarations to avoid warnings */
+void *POSIX_Init(void *argument);
+void *Middle(void *argument);
+void *Low(void *argument);
+
#define MAX_SEMS 2
sem_t sem1;
diff --git a/testsuites/psxtmtests/psxtmsleep01/init.c b/testsuites/psxtmtests/psxtmsleep01/init.c
index b1c1c04..4ef4d4c 100644
--- a/testsuites/psxtmtests/psxtmsleep01/init.c
+++ b/testsuites/psxtmtests/psxtmsleep01/init.c
@@ -1,5 +1,5 @@
/*
- * COPYRIGHT (c) 1989-2011.
+ * COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -17,6 +17,9 @@
#include <unistd.h>
+/* forward declarations to avoid warnings */
+void *POSIX_Init(void *argument);
+
void *POSIX_Init(
void *argument
)
diff --git a/testsuites/psxtmtests/psxtmsleep02/init.c b/testsuites/psxtmtests/psxtmsleep02/init.c
index 21ba565..7edd6b3 100644
--- a/testsuites/psxtmtests/psxtmsleep02/init.c
+++ b/testsuites/psxtmtests/psxtmsleep02/init.c
@@ -1,5 +1,5 @@
/*
- * COPYRIGHT (c) 1989-2011.
+ * COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -17,6 +17,11 @@
#include <pthread.h>
+/* forward declarations to avoid warnings */
+void *POSIX_Init(void *argument);
+void *Middle(void *argument);
+void *Low(void *argument);
+
void *Low(
void *argument
)
diff --git a/testsuites/psxtmtests/psxtmthread01/init.c b/testsuites/psxtmtests/psxtmthread01/init.c
index a53ff7a..ba8bd2b 100644
--- a/testsuites/psxtmtests/psxtmthread01/init.c
+++ b/testsuites/psxtmtests/psxtmthread01/init.c
@@ -1,5 +1,5 @@
/*
- * COPYRIGHT (c) 1989-2010.
+ * COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -18,6 +18,10 @@
#include <pthread.h>
+/* forward declarations to avoid warnings */
+void *POSIX_Init(void *argument);
+void *TestThread(void *argument);
+
pthread_t ThreadId;
void *TestThread(
diff --git a/testsuites/psxtmtests/psxtmthread03/init.c b/testsuites/psxtmtests/psxtmthread03/init.c
index 3d5be72..bafd464 100644
--- a/testsuites/psxtmtests/psxtmthread03/init.c
+++ b/testsuites/psxtmtests/psxtmthread03/init.c
@@ -1,5 +1,5 @@
/*
- * COPYRIGHT (c) 1989-2010.
+ * COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -19,6 +19,11 @@
#include <sched.h>
#include <rtems/timerdrv.h>
+/* forward declarations to avoid warnings */
+void *POSIX_Init(void *argument);
+void *Middle(void *argument);
+void *Low(void *argument);
+
void *Low(
void *argument
)
More information about the vc
mailing list