[rtems-testing commit] Eliminate missing prototype warnings in templates

Joel Sherrill joel at rtems.org
Fri May 11 14:28:19 UTC 2012


Module:    rtems-testing
Branch:    master
Commit:    f0bc7c2afdf1774b89a1f1f323023829c50c9372
Changeset: http://git.rtems.org/rtems-testing/commit/?id=f0bc7c2afdf1774b89a1f1f323023829c50c9372

Author:    Joel Sherrill <joel.sherrill at oarcorp.com>
Date:      Fri May 11 09:30:38 2012 -0500

Eliminate missing prototype warnings in templates

---

 rtems-test-template/psxtest/init.c                 |    7 ++++---
 rtems-test-template/psxtest_with_thread/init.c     |    8 +++++---
 rtems-test-template/psxtmtest_blocking/init.c      |    9 ++++++---
 rtems-test-template/psxtmtest_single/init.c        |    8 +++++---
 .../psxtmtest_unblocking_nopreempt/init.c          |    8 +++++---
 .../psxtmtest_unblocking_preempt/init.c            |    9 ++++++---
 rtems-test-template/smptest/init.c                 |    8 +++++---
 rtems-test-template/sptest/init.c                  |    7 ++++---
 .../sptest_operation_from_tsr/init.c               |   11 ++++++++---
 rtems-test-template/sptest_with_task/init.c        |    8 +++++---
 rtems-test-template/tmtest/init.c                  |    7 ++++---
 11 files changed, 57 insertions(+), 33 deletions(-)

diff --git a/rtems-test-template/psxtest/init.c b/rtems-test-template/psxtest/init.c
index 22a03e8..44c3d94 100644
--- a/rtems-test-template/psxtest/init.c
+++ b/rtems-test-template/psxtest/init.c
@@ -1,17 +1,18 @@
 /*
- *  COPYRIGHT (c) 1989-2011.
+ *  COPYRIGHT (c) 1989-2012.
  *  On-Line Applications Research Corporation (OAR).
  *
  *  The license and distribution terms for this file may be
  *  found in the file LICENSE in this distribution or at
  *  http://www.rtems.com/license/LICENSE.
- *
- *  $Id$
  */
 
 #include <tmacros.h>
 #include "test_support.h"
 
+/* forward declarations to avoid warnings */
+void *POSIX_Init(void *argument);
+
 void *POSIX_Init(
   rtems_task_argument argument
 )
diff --git a/rtems-test-template/psxtest_with_thread/init.c b/rtems-test-template/psxtest_with_thread/init.c
index 89f6573..fbed428 100644
--- a/rtems-test-template/psxtest_with_thread/init.c
+++ b/rtems-test-template/psxtest_with_thread/init.c
@@ -1,18 +1,20 @@
 /*
- *  COPYRIGHT (c) 1989-2011.
+ *  COPYRIGHT (c) 1989-2012.
  *  On-Line Applications Research Corporation (OAR).
  *
  *  The license and distribution terms for this file may be
  *  found in the file LICENSE in this distribution or at
  *  http://www.rtems.com/license/LICENSE.
- *
- *  $Id$
  */
 
 #include <tmacros.h>
 #include "test_support.h"
 #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/rtems-test-template/psxtmtest_blocking/init.c b/rtems-test-template/psxtmtest_blocking/init.c
index 4e1934d..2bbd3d2 100644
--- a/rtems-test-template/psxtmtest_blocking/init.c
+++ b/rtems-test-template/psxtmtest_blocking/init.c
@@ -1,12 +1,10 @@
 /*
- *  COPYRIGHT (c) 1989-2011.
+ *  COPYRIGHT (c) 1989-2012.
  *  On-Line Applications Research Corporation (OAR).
  *
  *  The license and distribution terms for this file may be
  *  found in the file LICENSE in this distribution or at
  *  http://www.rtems.com/license/LICENSE.
- *
- *  $Id$
  */
 
 #ifdef HAVE_CONFIG_H
@@ -20,6 +18,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/rtems-test-template/psxtmtest_single/init.c b/rtems-test-template/psxtmtest_single/init.c
index 4dd32ee..081b640 100644
--- a/rtems-test-template/psxtmtest_single/init.c
+++ b/rtems-test-template/psxtmtest_single/init.c
@@ -1,12 +1,10 @@
 /*
- *  COPYRIGHT (c) 1989-2011.
+ *  COPYRIGHT (c) 1989-2012.
  *  On-Line Applications Research Corporation (OAR).
  *
  *  The license and distribution terms for this file may be
  *  found in the file LICENSE in this distribution or at
  *  http://www.rtems.com/license/LICENSE.
- *
- *  $Id$
  */
 
 #ifdef HAVE_CONFIG_H
@@ -17,6 +15,10 @@
 #include <rtems/timerdrv.h>
 #include "test_support.h"
 
+/* forward declarations to avoid warnings */
+void *POSIX_Init(void *argument);
+void benchmark_NAME_OF_OPERATION(void);
+
 void benchmark_NAME_OF_OPERATION(void)
 {
   long end_time;
diff --git a/rtems-test-template/psxtmtest_unblocking_nopreempt/init.c b/rtems-test-template/psxtmtest_unblocking_nopreempt/init.c
index 118b639..972dd1e 100644
--- a/rtems-test-template/psxtmtest_unblocking_nopreempt/init.c
+++ b/rtems-test-template/psxtmtest_unblocking_nopreempt/init.c
@@ -1,12 +1,10 @@
 /*
- *  COPYRIGHT (c) 1989-2011.
+ *  COPYRIGHT (c) 1989-2012.
  *  On-Line Applications Research Corporation (OAR).
  *
  *  The license and distribution terms for this file may be
  *  found in the file LICENSE in this distribution or at
  *  http://www.rtems.com/license/LICENSE.
- *
- *  $Id$
  */
 
 #ifdef HAVE_CONFIG_H
@@ -21,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/rtems-test-template/psxtmtest_unblocking_preempt/init.c b/rtems-test-template/psxtmtest_unblocking_preempt/init.c
index d226f75..40c8ad2 100644
--- a/rtems-test-template/psxtmtest_unblocking_preempt/init.c
+++ b/rtems-test-template/psxtmtest_unblocking_preempt/init.c
@@ -1,12 +1,10 @@
 /*
- *  COPYRIGHT (c) 1989-2011.
+ *  COPYRIGHT (c) 1989-2012.
  *  On-Line Applications Research Corporation (OAR).
  *
  *  The license and distribution terms for this file may be
  *  found in the file LICENSE in this distribution or at
  *  http://www.rtems.com/license/LICENSE.
- *
- *  $Id$
  */
 
 #ifdef HAVE_CONFIG_H
@@ -21,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/rtems-test-template/smptest/init.c b/rtems-test-template/smptest/init.c
index 9b384f5..793263a 100644
--- a/rtems-test-template/smptest/init.c
+++ b/rtems-test-template/smptest/init.c
@@ -1,17 +1,19 @@
 /*
- *  COPYRIGHT (c) 1989-2011.
+ *  COPYRIGHT (c) 1989-2012.
  *  On-Line Applications Research Corporation (OAR).
  *
  *  The license and distribution terms for this file may be
  *  found in the file LICENSE in this distribution or at
  *  http://www.rtems.com/license/LICENSE.
- *
- *  $Id$
  */
 
 #include <tmacros.h>
 #include "test_support.h"
 
+/* forward declarations to avoid warnings */
+rtems_task Init(rtems_task_argument argument);
+rtems_task Test_task(rtems_task_argument argument);
+
 rtems_task Test_task(
   rtems_task_argument argument
 )
diff --git a/rtems-test-template/sptest/init.c b/rtems-test-template/sptest/init.c
index b5b32c3..158277e 100644
--- a/rtems-test-template/sptest/init.c
+++ b/rtems-test-template/sptest/init.c
@@ -1,17 +1,18 @@
 /*
- *  COPYRIGHT (c) 1989-2011.
+ *  COPYRIGHT (c) 1989-2012.
  *  On-Line Applications Research Corporation (OAR).
  *
  *  The license and distribution terms for this file may be
  *  found in the file LICENSE in this distribution or at
  *  http://www.rtems.com/license/LICENSE.
- *
- *  $Id$
  */
 
 #include <tmacros.h>
 #include "test_support.h"
 
+/* forward declarations to avoid warnings */
+rtems_task Init(rtems_task_argument argument);
+
 rtems_task Init(
   rtems_task_argument argument
 )
diff --git a/rtems-test-template/sptest_operation_from_tsr/init.c b/rtems-test-template/sptest_operation_from_tsr/init.c
index 1256fe4..fe853b1 100644
--- a/rtems-test-template/sptest_operation_from_tsr/init.c
+++ b/rtems-test-template/sptest_operation_from_tsr/init.c
@@ -1,16 +1,21 @@
 /*
- *  COPYRIGHT (c) 1989-2011.
+ *  COPYRIGHT (c) 1989-2012.
  *  On-Line Applications Research Corporation (OAR).
  *
  *  The license and distribution terms for this file may be
  *  found in the file LICENSE in this distribution or at
  *  http://www.rtems.com/license/LICENSE.
- *
- *  $Id$
  */
 
 #include <tmacros.h>
 
+/* forward declarations to avoid warnings */
+rtems_task Init(rtems_task_argument argument);
+rtems_timer_service_routine test_operation_from_isr(
+  rtems_id  timer,
+  void     *arg
+);
+
 volatile bool operation_performed_from_tsr;
 
 rtems_timer_service_routine test_operation_from_isr(
diff --git a/rtems-test-template/sptest_with_task/init.c b/rtems-test-template/sptest_with_task/init.c
index f7a8f69..35585d1 100644
--- a/rtems-test-template/sptest_with_task/init.c
+++ b/rtems-test-template/sptest_with_task/init.c
@@ -1,17 +1,19 @@
 /*
- *  COPYRIGHT (c) 1989-2011.
+ *  COPYRIGHT (c) 1989-2012.
  *  On-Line Applications Research Corporation (OAR).
  *
  *  The license and distribution terms for this file may be
  *  found in the file LICENSE in this distribution or at
  *  http://www.rtems.com/license/LICENSE.
- *
- *  $Id$
  */
 
 #include <tmacros.h>
 #include "test_support.h"
 
+/* forward declarations to avoid warnings */
+rtems_task Init(rtems_task_argument argument);
+rtems_task Test_task(rtems_task_argument argument);
+
 rtems_task Test_task(
   rtems_task_argument argument
 )
diff --git a/rtems-test-template/tmtest/init.c b/rtems-test-template/tmtest/init.c
index 7d364eb..5336cd7 100644
--- a/rtems-test-template/tmtest/init.c
+++ b/rtems-test-template/tmtest/init.c
@@ -1,12 +1,10 @@
 /*
- *  COPYRIGHT (c) 1989-2011.
+ *  COPYRIGHT (c) 1989-2012.
  *  On-Line Applications Research Corporation (OAR).
  *
  *  The license and distribution terms for this file may be
  *  found in the file LICENSE in this distribution or at
  *  http://www.rtems.com/license/LICENSE.
- *
- *  $Id$
  */
 
 #include <coverhd.h>
@@ -14,6 +12,9 @@
 #include <timesys.h>
 #include "test_support.h"
 
+/* forward declarations to avoid warnings */
+rtems_task Init(rtems_task_argument argument);
+
 rtems_task Init(
   rtems_task_argument argument
 )




More information about the vc mailing list