[rtems commit] sptests - Eliminate missing prototype warnings

Joel Sherrill joel at rtems.org
Thu May 31 20:31:34 UTC 2012


Module:    rtems
Branch:    master
Commit:    3c8eda77b91589f2829765666c5daad3a582537b
Changeset: http://git.rtems.org/rtems/commit/?id=3c8eda77b91589f2829765666c5daad3a582537b

Author:    Joel Sherrill <joel.sherrill at oarcorp.com>
Date:      Sat May 12 11:01:26 2012 -0500

sptests - Eliminate missing prototype warnings

---

 testsuites/sptests/sp08/init.c                    |    5 ++-
 testsuites/sptests/sp10/init.c                    |    5 ++-
 testsuites/sptests/sp18/init.c                    |    5 ++-
 testsuites/sptests/sp2038/init.c                  |    3 +
 testsuites/sptests/sp21/init.c                    |    8 +++-
 testsuites/sptests/sp27/init.c                    |   11 +++--
 testsuites/sptests/sp28/init.c                    |    4 +-
 testsuites/sptests/sp32/init.c                    |    5 ++-
 testsuites/sptests/sp40/init.c                    |    5 ++-
 testsuites/sptests/sp41/init.c                    |    6 ++-
 testsuites/sptests/sp49/init.c                    |    5 ++-
 testsuites/sptests/sp50/init.c                    |    8 +++-
 testsuites/sptests/sp51/init.c                    |    5 ++-
 testsuites/sptests/sp52/init.c                    |    7 +++
 testsuites/sptests/sp54/init.c                    |   14 +++++-
 testsuites/sptests/sp55/init.c                    |   12 +++++-
 testsuites/sptests/sp56/init.c                    |   13 +++++-
 testsuites/sptests/sp57/init.c                    |   13 +++++-
 testsuites/sptests/sp58/init.c                    |    7 +++-
 testsuites/sptests/sp59/init.c                    |    6 ++-
 testsuites/sptests/sp60/init.c                    |    5 ++-
 testsuites/sptests/sp62/init.c                    |    6 ++-
 testsuites/sptests/sp63/init.c                    |    8 +++-
 testsuites/sptests/sp64/init.c                    |    5 ++-
 testsuites/sptests/sp65/init.c                    |   10 ++--
 testsuites/sptests/sp67/init.c                    |    7 +++
 testsuites/sptests/sp68/init.c                    |    3 +
 testsuites/sptests/sp69/init.c                    |    5 ++-
 testsuites/sptests/sp70/init.c                    |    9 +++-
 testsuites/sptests/sp71/init.c                    |    5 ++-
 testsuites/sptests/sp72/init.c                    |    6 ++-
 testsuites/sptests/sp73/init.c                    |    6 ++-
 testsuites/sptests/sp74/init.c                    |    5 ++-
 testsuites/sptests/sp75/init.c                    |    5 ++-
 testsuites/sptests/sp76/init.c                    |    6 ++-
 testsuites/sptests/spassoc01/init.c               |    5 ++-
 testsuites/sptests/spcbssched03/tasks_periodic.c  |    5 ++-
 testsuites/sptests/spchain/init.c                 |    5 ++-
 testsuites/sptests/spclockget/init.c              |    5 ++-
 testsuites/sptests/spcoverage/init.c              |    5 ++-
 testsuites/sptests/sperror01/init.c               |    5 ++-
 testsuites/sptests/sperror02/init.c               |    5 ++-
 testsuites/sptests/sperror03/init.c               |    5 ++-
 testsuites/sptests/spfatal21/testcase.h           |    3 +-
 testsuites/sptests/spfatal_support/consume_sems.c |    9 ++++-
 testsuites/sptests/spfifo01/init.c                |    3 +
 testsuites/sptests/spfifo02/init.c                |   11 +++++-
 testsuites/sptests/spfifo03/init.c                |   22 ++++-------
 testsuites/sptests/spfifo04/init.c                |    5 ++-
 testsuites/sptests/spfifo05/init.c                |   10 +++--
 testsuites/sptests/spintrcritical01/init.c        |    7 +++-
 testsuites/sptests/spintrcritical06/init.c        |    7 +++-
 testsuites/sptests/spintrcritical08/init.c        |    7 +++-
 testsuites/sptests/spintrcritical09/init.c        |    7 +++-
 testsuites/sptests/spintrcritical10/init.c        |    5 ++-
 testsuites/sptests/spintrcritical11/init.c        |    6 ++-
 testsuites/sptests/spintrcritical13/init.c        |    6 ++-
 testsuites/sptests/spintrcritical15/init.c        |    5 ++-
 testsuites/sptests/spintrcritical16/init.c        |    5 ++
 testsuites/sptests/spintrcritical17/init.c        |    3 +
 testsuites/sptests/spmountmgr01/init.c            |   42 ++++++++++++--------
 testsuites/sptests/spnotepad01/init.c             |    3 +
 testsuites/sptests/spprintk/init.c                |    7 +++
 testsuites/sptests/spprivenv01/init.c             |    9 +++-
 testsuites/sptests/sprbtree01/init.c              |    3 +
 testsuites/sptests/spsimplesched01/init.c         |    4 ++
 testsuites/sptests/spsimplesched02/init.c         |   11 ++++-
 testsuites/sptests/spsimplesched03/init.c         |    3 +
 testsuites/sptests/spstkalloc/init.c              |    3 +
 testsuites/sptests/spthreadq01/init.c             |    7 +++
 testsuites/sptests/spwkspace/init.c               |    3 +
 71 files changed, 388 insertions(+), 106 deletions(-)

diff --git a/testsuites/sptests/sp08/init.c b/testsuites/sptests/sp08/init.c
index e4206b0..48ec913 100644
--- a/testsuites/sptests/sp08/init.c
+++ b/testsuites/sptests/sp08/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
@@ -13,6 +13,9 @@
 
 #include <tmacros.h>
 
+/* forward declarations to avoid warnings */
+rtems_task Init(rtems_task_argument argument);
+
 #define PRIxModes_Control 	PRIx32
 #define PRIxrtems_mode		PRIxModes_Control
 
diff --git a/testsuites/sptests/sp10/init.c b/testsuites/sptests/sp10/init.c
index e71e666..547fd1f 100644
--- a/testsuites/sptests/sp10/init.c
+++ b/testsuites/sptests/sp10/init.c
@@ -1,5 +1,5 @@
 /*
- *  COPYRIGHT (c) 1989-2009.
+ *  COPYRIGHT (c) 1989-2012.
  *  On-Line Applications Research Corporation (OAR).
  *
  *  The license and distribution terms for this file may be
@@ -13,6 +13,9 @@
 
 #include <tmacros.h>
 
+/* forward declarations to avoid warnings */
+rtems_task Init(rtems_task_argument argument);
+
 rtems_task Init(
   rtems_task_argument ignored
 )
diff --git a/testsuites/sptests/sp18/init.c b/testsuites/sptests/sp18/init.c
index eb84ecf..dc3f9f0 100644
--- a/testsuites/sptests/sp18/init.c
+++ b/testsuites/sptests/sp18/init.c
@@ -1,5 +1,5 @@
 /*
- *  COPYRIGHT (c) 1989-2009.
+ *  COPYRIGHT (c) 1989-2012.
  *  On-Line Applications Research Corporation (OAR).
  *
  *  The license and distribution terms for this file may be
@@ -13,6 +13,9 @@
 
 #include <tmacros.h>
 
+/* forward declarations to avoid warnings */
+rtems_task Init(rtems_task_argument argument);
+
 rtems_task Init(
   rtems_task_argument ignored
 )
diff --git a/testsuites/sptests/sp2038/init.c b/testsuites/sptests/sp2038/init.c
index 897aaf6..e0179e9 100644
--- a/testsuites/sptests/sp2038/init.c
+++ b/testsuites/sptests/sp2038/init.c
@@ -23,6 +23,9 @@
 
 #include <rtems.h>
 
+/* forward declarations to avoid warnings */
+rtems_task Init(rtems_task_argument argument);
+
 #define TEST_APPLICABLE \
   (CPU_TIMESTAMP_USE_INT64 == TRUE || CPU_TIMESTAMP_USE_INT64_INLINE == TRUE)
 
diff --git a/testsuites/sptests/sp21/init.c b/testsuites/sptests/sp21/init.c
index fefbfbc..84daaad 100644
--- a/testsuites/sptests/sp21/init.c
+++ b/testsuites/sptests/sp21/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
@@ -16,6 +16,12 @@
 #include <rtems/devzero.h>
 #include <rtems/libio.h>
 
+/* forward declarations to avoid warnings */
+rtems_task Init(rtems_task_argument argument);
+void do_test_io_manager(void);
+void do_test_io_lookup_name(void);
+void do_test_zero_driver(void);
+
 #define PRIurtems_device_major_number PRIu32
 
 #define STUB_DRIVER_MAJOR     0x2
diff --git a/testsuites/sptests/sp27/init.c b/testsuites/sptests/sp27/init.c
index ffd2027..9935f31 100644
--- a/testsuites/sptests/sp27/init.c
+++ b/testsuites/sptests/sp27/init.c
@@ -1,7 +1,7 @@
 /*
  *  Test for rtems_semaphore_flush
  *
- *  COPYRIGHT (c) 1989-2009.
+ *  COPYRIGHT (c) 1989-2012.
  *  On-Line Applications Research Corporation (OAR).
  *
  *  The license and distribution terms for this file may be
@@ -16,12 +16,15 @@
 #include <bsp.h>
 #include <tmacros.h>
 
-void starttask(int arg);
-rtems_task subtask(rtems_task_argument arg);
-
 #include <stdio.h>
 #include <stdlib.h>
 
+/* forward declarations to avoid warnings */
+rtems_task Init(rtems_task_argument argument);
+void starttask(int arg);
+rtems_task subtask(rtems_task_argument arg);
+void doTest(void);
+
 #define NTASK 4
 
 #if defined(USE_COUNTING_SEMAPHORE)
diff --git a/testsuites/sptests/sp28/init.c b/testsuites/sptests/sp28/init.c
index 5a564f9..bc24f35 100644
--- a/testsuites/sptests/sp28/init.c
+++ b/testsuites/sptests/sp28/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,8 @@
 #include <rtems/error.h>
 #include <stdio.h>
 
+/* forward declarations to avoid warnings */
+rtems_task Init(rtems_task_argument argument);
 rtems_task subtask(rtems_task_argument arg);
 rtems_task Task_variable_deleter(rtems_task_argument ignored);
 void starttask(int arg);
diff --git a/testsuites/sptests/sp32/init.c b/testsuites/sptests/sp32/init.c
index 5a301c0..43f9f1d 100644
--- a/testsuites/sptests/sp32/init.c
+++ b/testsuites/sptests/sp32/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
@@ -13,6 +13,9 @@
 
 #include <tmacros.h>  /* includes bsp.h, stdio, etc... */
 
+/* forward declarations to avoid warnings */
+rtems_task Init(rtems_task_argument argument);
+
 rtems_task Init(
     rtems_task_argument ignored
 ) {
diff --git a/testsuites/sptests/sp40/init.c b/testsuites/sptests/sp40/init.c
index 2f88d9c..c16fd58 100644
--- a/testsuites/sptests/sp40/init.c
+++ b/testsuites/sptests/sp40/init.c
@@ -1,7 +1,7 @@
 /*
  *  IO Manager Dynamic Registration
  *
- *  COPYRIGHT (c) 1989-2007.
+ *  COPYRIGHT (c) 1989-2012.
  *  On-Line Applications Research Corporation (OAR).
  *
  *  Copyright (c) 2009 embedded brains GmbH.
@@ -19,6 +19,9 @@
 
 #include <tmacros.h>
 
+/* forward declarations to avoid warnings */
+rtems_task Init(rtems_task_argument argument);
+
 static rtems_device_driver test_open(
      rtems_device_major_number  minor,
      rtems_device_minor_number  major,
diff --git a/testsuites/sptests/sp41/init.c b/testsuites/sptests/sp41/init.c
index 3c4c0b1..cadf7d5 100644
--- a/testsuites/sptests/sp41/init.c
+++ b/testsuites/sptests/sp41/init.c
@@ -1,5 +1,5 @@
 /*
- *  COPYRIGHT (c) 1989-2009.
+ *  COPYRIGHT (c) 1989-2012.
  *  On-Line Applications Research Corporation (OAR).
  *
  *  The license and distribution terms for this file may be
@@ -14,6 +14,10 @@
 #define __RTEMS_VIOLATE_KERNEL_VISIBILITY__
 #include <tmacros.h>
 
+/* forward declarations to avoid warnings */
+rtems_task Init(rtems_task_argument argument);
+void iterator(Thread_Control *thread);
+
 void iterator(
   Thread_Control *thread
 )
diff --git a/testsuites/sptests/sp49/init.c b/testsuites/sptests/sp49/init.c
index d897ead..e07458c 100644
--- a/testsuites/sptests/sp49/init.c
+++ b/testsuites/sptests/sp49/init.c
@@ -1,5 +1,5 @@
 /*
- *  COPYRIGHT (c) 1989-2009.
+ *  COPYRIGHT (c) 1989-2012.
  *  On-Line Applications Research Corporation (OAR).
  *
  *  The license and distribution terms for this file may be
@@ -13,6 +13,9 @@
 
 #include <tmacros.h>
 
+/* forward declarations to avoid warnings */
+rtems_task Init(rtems_task_argument argument);
+
 rtems_task Init(rtems_task_argument ignored)
 {
   rtems_status_code sc;
diff --git a/testsuites/sptests/sp50/init.c b/testsuites/sptests/sp50/init.c
index f19aa25..61f8632 100644
--- a/testsuites/sptests/sp50/init.c
+++ b/testsuites/sptests/sp50/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
@@ -14,10 +14,14 @@
 #include <tmacros.h>
 #include "pritime.h"
 
+/* forward declarations to avoid warnings */
+rtems_timer_service_routine Timer_Routine(rtems_id id, void *ignored);
+rtems_task Init(rtems_task_argument argument);
+
 volatile int   Fired;
 volatile bool  timerRan;
 
-rtems_timer_service_routine Timer_Routine( rtems_id id, void *ignored )
+rtems_timer_service_routine Timer_Routine(rtems_id id, void *ignored)
 {
   rtems_status_code status;
 
diff --git a/testsuites/sptests/sp51/init.c b/testsuites/sptests/sp51/init.c
index 697e095..abc93cc 100644
--- a/testsuites/sptests/sp51/init.c
+++ b/testsuites/sptests/sp51/init.c
@@ -1,5 +1,5 @@
 /*
- *  COPYRIGHT (c) 1989-2009.
+ *  COPYRIGHT (c) 1989-2012.
  *  On-Line Applications Research Corporation (OAR).
  *
  *  The license and distribution terms for this file may be
@@ -13,6 +13,9 @@
 
 #include <tmacros.h>
 
+/* forward declarations to avoid warnings */
+rtems_task Init(rtems_task_argument argument);
+
 rtems_task Init(
   rtems_task_argument argument
 )
diff --git a/testsuites/sptests/sp52/init.c b/testsuites/sptests/sp52/init.c
index 71a280f..b95fdce 100644
--- a/testsuites/sptests/sp52/init.c
+++ b/testsuites/sptests/sp52/init.c
@@ -27,6 +27,13 @@
 
 #include <tmacros.h>
 
+/* forward declarations to avoid warnings */
+rtems_task Init(rtems_task_argument argument);
+rtems_timer_service_routine TIMER_service_routine(
+  rtems_id  ignored_id,
+  void     *user_data
+);
+
 #define INITIAL_SECOND 10
 volatile bool _timer_passage = FALSE;
 
diff --git a/testsuites/sptests/sp54/init.c b/testsuites/sptests/sp54/init.c
index ecf66a2..8183fa7 100644
--- a/testsuites/sptests/sp54/init.c
+++ b/testsuites/sptests/sp54/init.c
@@ -1,7 +1,12 @@
-/*  Odd Id Cases where API configured but No Threads
- *    + Possibly Valid Id passed to directive
+/**
+ *  @@file
  *
- *  COPYRIGHT (c) 1989-2011.
+ *  Odd Id Cases where API configured but No Threads
+ *    + Possibly Valid Id passed to directive
+ */
+
+/*
+ *  COPYRIGHT (c) 1989-2012.
  *  On-Line Applications Research Corporation (OAR).
  *
  *  The license and distribution terms for this file may be
@@ -15,6 +20,9 @@
 
 #include <tmacros.h>
 
+/* forward declarations to avoid warnings */
+rtems_task Init(rtems_task_argument argument);
+
 rtems_task Init(
   rtems_task_argument ignored
 )
diff --git a/testsuites/sptests/sp55/init.c b/testsuites/sptests/sp55/init.c
index 9ad14f2..5ba31e0 100644
--- a/testsuites/sptests/sp55/init.c
+++ b/testsuites/sptests/sp55/init.c
@@ -1,6 +1,11 @@
-/*  Broadcast to a message queue with pending messages
+/**
+ *  @file
  *
- *  COPYRIGHT (c) 1989-2009.
+ *  Broadcast to a message queue with pending messages
+ */
+
+/*
+ *  COPYRIGHT (c) 1989-2012.
  *  On-Line Applications Research Corporation (OAR).
  *
  *  The license and distribution terms for this file may be
@@ -14,6 +19,9 @@
 
 #include <tmacros.h>
 
+/* forward declarations to avoid warnings */
+rtems_task Init(rtems_task_argument argument);
+
 rtems_task Init(
   rtems_task_argument ignored
 )
diff --git a/testsuites/sptests/sp56/init.c b/testsuites/sptests/sp56/init.c
index 4af6217..d41d96a 100644
--- a/testsuites/sptests/sp56/init.c
+++ b/testsuites/sptests/sp56/init.c
@@ -1,6 +1,11 @@
-/*  Extension create fails
+/**
+ *  @file
  *
- *  COPYRIGHT (c) 1989-2009.
+ *  Extension create fails
+ */
+
+/*
+ *  COPYRIGHT (c) 1989-2012.
  *  On-Line Applications Research Corporation (OAR).
  *
  *  The license and distribution terms for this file may be
@@ -14,6 +19,10 @@
 
 #include <tmacros.h>
 
+/* forward declarations to avoid warnings */
+rtems_task Init(rtems_task_argument argument);
+bool task_create(Thread_Control *executing, Thread_Control *created);
+
 bool task_create(
   Thread_Control *executing,
   Thread_Control *created
diff --git a/testsuites/sptests/sp57/init.c b/testsuites/sptests/sp57/init.c
index a616d02..c7827d8 100644
--- a/testsuites/sptests/sp57/init.c
+++ b/testsuites/sptests/sp57/init.c
@@ -1,6 +1,11 @@
-/*  Restart a task which is delaying
+/*
+ *  @file
  *
- *  COPYRIGHT (c) 1989-2011.
+ *  Restart a task which is delaying
+ */
+
+/*
+ *  COPYRIGHT (c) 1989-2012.
  *  On-Line Applications Research Corporation (OAR).
  *
  *  The license and distribution terms for this file may be
@@ -14,6 +19,10 @@
 
 #include <tmacros.h>
 
+/* forward declarations to avoid warnings */
+rtems_task Init(rtems_task_argument argument);
+rtems_task Delay_task(rtems_task_argument ignored);
+
 rtems_task Delay_task(
   rtems_task_argument ignored
 )
diff --git a/testsuites/sptests/sp58/init.c b/testsuites/sptests/sp58/init.c
index a16472b..3d16b60 100644
--- a/testsuites/sptests/sp58/init.c
+++ b/testsuites/sptests/sp58/init.c
@@ -1,5 +1,5 @@
 /*
- *  COPYRIGHT (c) 1989-2009.
+ *  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 <rtems/score/timespec.h>
 #include <rtems/score/threadq.h>
 
+/* forward declarations to avoid warnings */
+rtems_task Init(rtems_task_argument argument);
+void timespec_divide_by_zero(void);
+void timespec_greater_than_lhs_sec_less(void);
+
 void timespec_divide_by_zero(void)
 {
   struct timespec      t1;
diff --git a/testsuites/sptests/sp59/init.c b/testsuites/sptests/sp59/init.c
index 966eaa0..d03c836 100644
--- a/testsuites/sptests/sp59/init.c
+++ b/testsuites/sptests/sp59/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
@@ -13,6 +13,10 @@
 
 #include <tmacros.h>
 
+/* forward declarations to avoid warnings */
+rtems_task Init(rtems_task_argument argument);
+rtems_task Blocking_task(rtems_task_argument ignored);
+
 #define ALLOC_SIZE 400
 uint8_t Region_Memory[512] CPU_STRUCTURE_ALIGNMENT;
 rtems_id Region;
diff --git a/testsuites/sptests/sp60/init.c b/testsuites/sptests/sp60/init.c
index c823350..9762e9c 100644
--- a/testsuites/sptests/sp60/init.c
+++ b/testsuites/sptests/sp60/init.c
@@ -1,5 +1,5 @@
 /*
- *  COPYRIGHT (c) 1989-2009.
+ *  COPYRIGHT (c) 1989-2012.
  *  On-Line Applications Research Corporation (OAR).
  *
  *  The license and distribution terms for this file may be
@@ -13,6 +13,9 @@
 
 #include <tmacros.h>
 
+/* forward declarations to avoid warnings */
+rtems_task Init(rtems_task_argument argument);
+
 rtems_task Init(
   rtems_task_argument ignored
 )
diff --git a/testsuites/sptests/sp62/init.c b/testsuites/sptests/sp62/init.c
index 1f2033b..5924586 100644
--- a/testsuites/sptests/sp62/init.c
+++ b/testsuites/sptests/sp62/init.c
@@ -1,5 +1,5 @@
 /*
- *  COPYRIGHT (c) 1989-2009.
+ *  COPYRIGHT (c) 1989-2012.
  *  On-Line Applications Research Corporation (OAR).
  *
  *  The license and distribution terms for this file may be
@@ -14,6 +14,10 @@
 #include <tmacros.h>
 #include <unistd.h>
 
+/* forward declarations to avoid warnings */
+rtems_task Init(rtems_task_argument argument);
+rtems_task Blocker(rtems_task_argument ignored);
+
 rtems_id      Region;
 uint32_t      Region_Memory[256] CPU_STRUCTURE_ALIGNMENT;
 volatile bool case_hit;
diff --git a/testsuites/sptests/sp63/init.c b/testsuites/sptests/sp63/init.c
index fcbde5c..040f510 100644
--- a/testsuites/sptests/sp63/init.c
+++ b/testsuites/sptests/sp63/init.c
@@ -1,5 +1,5 @@
 /*
- *  COPYRIGHT (c) 1989-2009.
+ *  COPYRIGHT (c) 1989-2012.
  *  On-Line Applications Research Corporation (OAR).
  *
  *  The license and distribution terms for this file may be
@@ -13,6 +13,12 @@
 
 #include <tmacros.h>
 
+/* forward declarations to avoid warnings */
+rtems_task Init(rtems_task_argument argument);
+void test_case_one(void);
+void test_case_two(void);
+void test_case_three(void);
+
 #define MAX 256
 uint32_t      Memory[MAX];
 Heap_Control  Heap;
diff --git a/testsuites/sptests/sp64/init.c b/testsuites/sptests/sp64/init.c
index fa3e3a8..42b9c45 100644
--- a/testsuites/sptests/sp64/init.c
+++ b/testsuites/sptests/sp64/init.c
@@ -1,5 +1,5 @@
 /*
- *  COPYRIGHT (c) 1989-2009.
+ *  COPYRIGHT (c) 1989-2012.
  *  On-Line Applications Research Corporation (OAR).
  *
  *  The license and distribution terms for this file may be
@@ -13,6 +13,9 @@
 
 #include "tmacros.h"
 
+/* forward declarations to avoid warnings */
+rtems_task Init(rtems_task_argument argument);
+
 uint32_t Area1[50] CPU_STRUCTURE_ALIGNMENT;
 uint32_t Area2[50] CPU_STRUCTURE_ALIGNMENT;
 
diff --git a/testsuites/sptests/sp65/init.c b/testsuites/sptests/sp65/init.c
index d633f5c..046ceb6 100644
--- a/testsuites/sptests/sp65/init.c
+++ b/testsuites/sptests/sp65/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
@@ -14,6 +14,10 @@
 #include <tmacros.h>
 #include <unistd.h>
 
+/* forward declarations to avoid warnings */
+rtems_task Init(rtems_task_argument argument);
+rtems_task Task_1(rtems_task_argument arg);
+
 #if defined(INHERIT_CEILING)
   #define TEST_NAME                "66"
   #define TASK_PRIORITY            2
@@ -22,10 +26,6 @@
   #define TASK_PRIORITY            1
 #endif
 
-rtems_task Task_1(
-  rtems_task_argument arg
-);
-
 rtems_task Init(
   rtems_task_argument ignored
 )
diff --git a/testsuites/sptests/sp67/init.c b/testsuites/sptests/sp67/init.c
index 6a8fdea..60f6c7b 100644
--- a/testsuites/sptests/sp67/init.c
+++ b/testsuites/sptests/sp67/init.c
@@ -16,6 +16,13 @@
 
 #include <tmacros.h>
 
+/* forward declarations to avoid warnings */
+rtems_task Init(rtems_task_argument argument);
+rtems_timer_service_routine TIMER_service_routine(
+  rtems_id  ignored_id,
+  void     *user_data
+);
+
 /*
  *  We have to extern this rather than use __RTEMS_VIOLATE_KERNEL_VISIBILITY__
  *  because this variable isn't actually in any .h.
diff --git a/testsuites/sptests/sp68/init.c b/testsuites/sptests/sp68/init.c
index b212402..0340129 100644
--- a/testsuites/sptests/sp68/init.c
+++ b/testsuites/sptests/sp68/init.c
@@ -25,6 +25,9 @@
 
 #include <tmacros.h>
 
+/* forward declarations to avoid warnings */
+rtems_task Init(rtems_task_argument argument);
+
 #define TIMER_COUNT 6
 
 #define OBTAIN 0
diff --git a/testsuites/sptests/sp69/init.c b/testsuites/sptests/sp69/init.c
index 5e1cc43..a886929 100644
--- a/testsuites/sptests/sp69/init.c
+++ b/testsuites/sptests/sp69/init.c
@@ -1,5 +1,5 @@
 /*
- *  COPYRIGHT (c) 1989-2009.
+ *  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 <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/testsuites/sptests/sp70/init.c b/testsuites/sptests/sp70/init.c
index 67980ea..2d774b1 100644
--- a/testsuites/sptests/sp70/init.c
+++ b/testsuites/sptests/sp70/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
@@ -14,6 +14,11 @@
 #include <tmacros.h>
 #include "test_support.h"
 
+/* forward declarations to avoid warnings */
+rtems_task Init(rtems_task_argument argument);
+void create_helper(int task);
+void delete_helper(int task);
+ 
 rtems_id          TaskID[10];
 
 void create_helper(int task)
@@ -32,7 +37,7 @@ void create_helper(int task)
   directive_failed( status, "rtems_task_create" );
 }
 
-void delete_helper( int task )
+void delete_helper(int task)
 {
   rtems_status_code status;
 
diff --git a/testsuites/sptests/sp71/init.c b/testsuites/sptests/sp71/init.c
index b330e89..10c339e 100644
--- a/testsuites/sptests/sp71/init.c
+++ b/testsuites/sptests/sp71/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
@@ -16,6 +16,9 @@
 
 #define PER_ALLOCATION 8000
 
+/* forward declarations to avoid warnings */
+rtems_task Init(rtems_task_argument argument);
+
 rtems_task Init(
   rtems_task_argument argument
 )
diff --git a/testsuites/sptests/sp72/init.c b/testsuites/sptests/sp72/init.c
index d2e0f55..492aa5d 100644
--- a/testsuites/sptests/sp72/init.c
+++ b/testsuites/sptests/sp72/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
@@ -14,6 +14,10 @@
 #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_id Semaphore_id;
 
 rtems_task Test_task(
diff --git a/testsuites/sptests/sp73/init.c b/testsuites/sptests/sp73/init.c
index 39fbe73..3b5aba3 100644
--- a/testsuites/sptests/sp73/init.c
+++ b/testsuites/sptests/sp73/init.c
@@ -1,5 +1,5 @@
 /* 
- *  COPYRIGHT (c) 2011.
+ *  COPYRIGHT (c) 1989-2012.
  *  On-Line Applications Research Corporation (OAR).
  *
  *  The license and distribution terms for this file may be
@@ -15,6 +15,10 @@
 #include <inttypes.h>
 #include "tmacros.h"
 
+/* forward declarations to avoid warnings */
+rtems_task Init(rtems_task_argument argument);
+rtems_task Test_task(rtems_task_argument argument);
+
 rtems_id   Task_id[ 4 ];         /* array of task ids */
 rtems_name Task_name[ 4 ];       /* array of task names */
 
diff --git a/testsuites/sptests/sp74/init.c b/testsuites/sptests/sp74/init.c
index 7661932..a6720dc 100644
--- a/testsuites/sptests/sp74/init.c
+++ b/testsuites/sptests/sp74/init.c
@@ -1,5 +1,5 @@
 /* 
- *  COPYRIGHT (c) 2011.
+ *  COPYRIGHT (c) 1989-2012.
  *  On-Line Applications Research Corporation (OAR).
  *
  *  The license and distribution terms for this file may be
@@ -13,6 +13,9 @@
 
 #include <tmacros.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 index
diff --git a/testsuites/sptests/sp75/init.c b/testsuites/sptests/sp75/init.c
index 4b4a0b6..95ba2e0 100644
--- a/testsuites/sptests/sp75/init.c
+++ b/testsuites/sptests/sp75/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 <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/testsuites/sptests/sp76/init.c b/testsuites/sptests/sp76/init.c
index 53788f8..e9c5304 100644
--- a/testsuites/sptests/sp76/init.c
+++ b/testsuites/sptests/sp76/init.c
@@ -1,5 +1,5 @@
 /* 
- *  COPYRIGHT (c) 2011.
+ *  COPYRIGHT (c) 1989-2012.
  *  On-Line Applications Research Corporation (OAR).
  *
  *  The license and distribution terms for this file may be
@@ -13,6 +13,10 @@
 
 #include <tmacros.h>
 
+/* forward declarations to avoid warnings */
+rtems_task Init(rtems_task_argument argument);
+rtems_task Test_task(rtems_task_argument index);
+
 rtems_task Test_task(
   rtems_task_argument index
 )
diff --git a/testsuites/sptests/spassoc01/init.c b/testsuites/sptests/spassoc01/init.c
index c61bbc8..4a5f80c 100644
--- a/testsuites/sptests/spassoc01/init.c
+++ b/testsuites/sptests/spassoc01/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
@@ -17,6 +17,9 @@
 #include <stdio.h>
 #include <rtems/assoc.h>
 
+/* forward declarations to avoid warnings */
+rtems_task Init(rtems_task_argument argument);
+
 const rtems_assoc_t assoc_table_null[] = 
   {
     { NULL       , 0 , 0  },
diff --git a/testsuites/sptests/spcbssched03/tasks_periodic.c b/testsuites/sptests/spcbssched03/tasks_periodic.c
index 684ecc8..74d879d 100644
--- a/testsuites/sptests/spcbssched03/tasks_periodic.c
+++ b/testsuites/sptests/spcbssched03/tasks_periodic.c
@@ -19,7 +19,10 @@
 
 #include "system.h"
 
-void overrun_handler_task_4 (
+/* forward declarations to avoid warnings */
+void overrun_handler_task_4(rtems_cbs_server_id server_id);
+
+void overrun_handler_task_4(
   rtems_cbs_server_id server_id
 )
 {
diff --git a/testsuites/sptests/spchain/init.c b/testsuites/sptests/spchain/init.c
index 129d5a4..00e2d77 100644
--- a/testsuites/sptests/spchain/init.c
+++ b/testsuites/sptests/spchain/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
@@ -14,6 +14,9 @@
 #include <tmacros.h>
 #include <rtems/chain.h>
 
+/* forward declarations to avoid warnings */
+rtems_task Init(rtems_task_argument argument);
+
 #define EVENT RTEMS_EVENT_13
 #define TIMEOUT 1
 
diff --git a/testsuites/sptests/spclockget/init.c b/testsuites/sptests/spclockget/init.c
index d828f1d..9776a6e 100644
--- a/testsuites/sptests/spclockget/init.c
+++ b/testsuites/sptests/spclockget/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
@@ -14,6 +14,9 @@
 #include <tmacros.h>
 #include "pritime.h"
 
+/* forward declarations to avoid warnings */
+rtems_task Init(rtems_task_argument argument);
+
 rtems_task Init(
   rtems_task_argument ignored
 )
diff --git a/testsuites/sptests/spcoverage/init.c b/testsuites/sptests/spcoverage/init.c
index 8506040..2ac51f1 100644
--- a/testsuites/sptests/spcoverage/init.c
+++ b/testsuites/sptests/spcoverage/init.c
@@ -1,5 +1,5 @@
 /*
- *  COPYRIGHT (c) 1989-2009.
+ *  COPYRIGHT (c) 1989-2012.
  *  On-Line Applications Research Corporation (OAR).
  *
  *  The license and distribution terms for this file may be
@@ -13,6 +13,9 @@
 
 #include "tmacros.h"
 
+/* forward declarations to avoid warnings */
+rtems_task Init(rtems_task_argument argument);
+
 rtems_task Init(
   rtems_task_argument ignored
 )
diff --git a/testsuites/sptests/sperror01/init.c b/testsuites/sptests/sperror01/init.c
index 3b6195f..36e16b1 100644
--- a/testsuites/sptests/sperror01/init.c
+++ b/testsuites/sptests/sperror01/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
@@ -16,6 +16,9 @@
 #include "rtems/error.h"
 #include <errno.h>
 
+/* forward declarations to avoid warnings */
+rtems_task Init(rtems_task_argument argument);
+
 rtems_task Init(
   rtems_task_argument argument
 )
diff --git a/testsuites/sptests/sperror02/init.c b/testsuites/sptests/sperror02/init.c
index c058566..02f9e79 100644
--- a/testsuites/sptests/sperror02/init.c
+++ b/testsuites/sptests/sperror02/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
@@ -16,6 +16,9 @@
 #include <errno.h>
 #include <rtems/error.h>
 
+/* forward declarations to avoid warnings */
+rtems_task Init(rtems_task_argument argument);
+
 rtems_task Init(
   rtems_task_argument argument
 )
diff --git a/testsuites/sptests/sperror03/init.c b/testsuites/sptests/sperror03/init.c
index 373f76b..0b75337 100644
--- a/testsuites/sptests/sperror03/init.c
+++ b/testsuites/sptests/sperror03/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
@@ -14,6 +14,9 @@
 #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/testsuites/sptests/spfatal21/testcase.h b/testsuites/sptests/spfatal21/testcase.h
index 80f7fca..788f06b 100644
--- a/testsuites/sptests/spfatal21/testcase.h
+++ b/testsuites/sptests/spfatal21/testcase.h
@@ -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
@@ -15,6 +15,7 @@
 
 #include <rtems/libcsupport.h>
 #include <rtems/malloc.h>
+#include <unistd.h>
 
 /* Safe information on real heap */
 extern rtems_malloc_sbrk_functions_t *rtems_malloc_sbrk_helpers;
diff --git a/testsuites/sptests/spfatal_support/consume_sems.c b/testsuites/sptests/spfatal_support/consume_sems.c
index 5024eb6..adb1901 100644
--- a/testsuites/sptests/spfatal_support/consume_sems.c
+++ b/testsuites/sptests/spfatal_support/consume_sems.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
@@ -13,6 +13,13 @@
 
 #include <rtems.h>
 
+/* forward declarations to avoid warnings */
+rtems_device_driver consume_semaphores_initialize(
+  rtems_device_major_number major __attribute__((unused)),
+  rtems_device_minor_number minor __attribute__((unused)),
+  void *pargp __attribute__((unused))
+);
+
 #define MAXIMUM 20
 rtems_id Semaphores[MAXIMUM];
 
diff --git a/testsuites/sptests/spfifo01/init.c b/testsuites/sptests/spfifo01/init.c
index e0aa442..e01204e 100644
--- a/testsuites/sptests/spfifo01/init.c
+++ b/testsuites/sptests/spfifo01/init.c
@@ -19,6 +19,9 @@
 
 #include "tmacros.h"
 
+/* forward declarations to avoid warnings */
+rtems_task Init(rtems_task_argument argument);
+
 #define FIFO_PATH "/fifo01"
 
 static void test_main(void)
diff --git a/testsuites/sptests/spfifo02/init.c b/testsuites/sptests/spfifo02/init.c
index 985f1bb..33c1a79 100644
--- a/testsuites/sptests/spfifo02/init.c
+++ b/testsuites/sptests/spfifo02/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
@@ -21,6 +21,15 @@
 #include <errno.h>
 #include <rtems/libcsupport.h>
 
+/* forward declarations to avoid warnings */
+rtems_task Init(rtems_task_argument argument);
+void create_all_barriers(void);
+void create_all_semaphores(void);
+void delete_barrier(void);
+void delete_semaphore(void);
+void create_fifo(void);
+void open_fifo(int expected, int flags);
+
 #define MAXIMUM 10
 #define NUM_OPEN_REQ 26
 
diff --git a/testsuites/sptests/spfifo03/init.c b/testsuites/sptests/spfifo03/init.c
index 2c3fb1a..143bed8 100644
--- a/testsuites/sptests/spfifo03/init.c
+++ b/testsuites/sptests/spfifo03/init.c
@@ -1,15 +1,5 @@
-/*  Init
- *
- *  This routine is the initialization task for this test program.
- *  It is a user initialization task and has the responsibility
- *  of invoking the test routine
- *
- *  Input parameters:
- *    not_used
- *
- *  Output parameters:  NONE
- *
- *  COPYRIGHT (c) 1989-1999.
+/*
+ *  COPYRIGHT (c) 1989-2012.
  *  On-Line Applications Research Corporation (OAR).
  *
  *  The license and distribution terms for this file may be
@@ -33,6 +23,11 @@
 #include <rtems.h>
 #include <rtems/libio.h>
 
+/* forward declarations to avoid warnings */
+rtems_task Init(rtems_task_argument argument);
+rtems_task read_task(rtems_task_argument not_used);
+void test_main(void);
+
 #define SEND_RCV_BUFSIZ 12
 rtems_id Barrier;
 
@@ -91,8 +86,7 @@ rtems_task read_task(rtems_task_argument not_used)
   rtems_task_delete( RTEMS_SELF );
 }
 
-
-void test_main(void) //Also acts as the write task
+void test_main(void) /* Also acts as the write task */
 {
 
   rtems_id readTaskID;
diff --git a/testsuites/sptests/spfifo04/init.c b/testsuites/sptests/spfifo04/init.c
index 5caa784..51fab0d 100644
--- a/testsuites/sptests/spfifo04/init.c
+++ b/testsuites/sptests/spfifo04/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
@@ -23,6 +23,9 @@
 #include <rtems.h>
 #include <rtems/libio.h>
 
+/* forward declarations to avoid warnings */
+rtems_task Init(rtems_task_argument argument);
+
 #define SEND_RCV_BUFSIZ 12
 
 rtems_task Init(
diff --git a/testsuites/sptests/spfifo05/init.c b/testsuites/sptests/spfifo05/init.c
index 81ca4a4..b9048de 100644
--- a/testsuites/sptests/spfifo05/init.c
+++ b/testsuites/sptests/spfifo05/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
@@ -24,6 +24,10 @@
 #include <rtems.h>
 #include <rtems/libio.h>
 
+/* forward declarations to avoid warnings */
+rtems_task Init(rtems_task_argument argument);
+rtems_task read_task(rtems_task_argument not_used);
+
 #define SEND_RCV_BUFSIZ       (PIPE_BUF+20)
 
 rtems_id rBarrier;
@@ -32,7 +36,7 @@ rtems_id wBarrier;
 char recvBuf[SEND_RCV_BUFSIZ] = {0};
 char sendBuf[SEND_RCV_BUFSIZ] = {0};
 
-rtems_task read_task( rtems_task_argument not_used )
+rtems_task read_task(rtems_task_argument not_used)
 {
   int fd = 0;
   int status = -1;
@@ -117,8 +121,6 @@ rtems_task read_task( rtems_task_argument not_used )
   rtems_task_delete( RTEMS_SELF );
 }
 
-
-
 rtems_task Init(
   rtems_task_argument not_used
 )
diff --git a/testsuites/sptests/spintrcritical01/init.c b/testsuites/sptests/spintrcritical01/init.c
index 6276c9b..7859a14 100644
--- a/testsuites/sptests/spintrcritical01/init.c
+++ b/testsuites/sptests/spintrcritical01/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,11 @@
 #include <tmacros.h>
 #include <intrcritical.h>
 
+/* forward declarations to avoid warnings */
+rtems_task Init(rtems_task_argument argument);
+rtems_timer_service_routine test_release_from_isr(rtems_id  timer, void *arg);
+Thread_blocking_operation_States getState(void);
+
 #if defined(FIFO_NO_TIMEOUT)
   #define TEST_NAME                "01"
   #define TEST_STRING              "FIFO/Without Timeout"
diff --git a/testsuites/sptests/spintrcritical06/init.c b/testsuites/sptests/spintrcritical06/init.c
index 408d9d9..d1cbe4d 100644
--- a/testsuites/sptests/spintrcritical06/init.c
+++ b/testsuites/sptests/spintrcritical06/init.c
@@ -1,5 +1,5 @@
 /*
- *  COPYRIGHT (c) 1989-2009.
+ *  COPYRIGHT (c) 1989-2012.
  *  On-Line Applications Research Corporation (OAR).
  *
  *  The license and distribution terms for this file may be
@@ -15,6 +15,11 @@
 #include <tmacros.h>
 #include <intrcritical.h>
 
+/* forward declarations to avoid warnings */
+rtems_task Init(rtems_task_argument argument);
+rtems_timer_service_routine test_release_from_isr(rtems_id  timer, void *arg);
+rtems_task Secondary_task(rtems_task_argument arg);
+
 /* common parameters */
 #define SEMAPHORE_ATTRIBUTES     RTEMS_PRIORITY
 
diff --git a/testsuites/sptests/spintrcritical08/init.c b/testsuites/sptests/spintrcritical08/init.c
index a0be34e..534cd06 100644
--- a/testsuites/sptests/spintrcritical08/init.c
+++ b/testsuites/sptests/spintrcritical08/init.c
@@ -1,5 +1,5 @@
 /*
- *  COPYRIGHT (c) 1989-2009.
+ *  COPYRIGHT (c) 1989-2012.
  *  On-Line Applications Research Corporation (OAR).
  *
  *  The license and distribution terms for this file may be
@@ -15,6 +15,11 @@
 #include <tmacros.h>
 #include <intrcritical.h>
 
+/* forward declarations to avoid warnings */
+rtems_task Init(rtems_task_argument argument);
+rtems_timer_service_routine test_release_from_isr(rtems_id  timer, void *arg);
+rtems_rate_monotonic_period_states getState(void);
+
 rtems_id Main_task;
 rtems_id Period;
 volatile bool case_hit;
diff --git a/testsuites/sptests/spintrcritical09/init.c b/testsuites/sptests/spintrcritical09/init.c
index 28d31fd..c953799 100644
--- a/testsuites/sptests/spintrcritical09/init.c
+++ b/testsuites/sptests/spintrcritical09/init.c
@@ -1,5 +1,5 @@
 /*
- *  COPYRIGHT (c) 1989-2009.
+ *  COPYRIGHT (c) 1989-2012.
  *  On-Line Applications Research Corporation (OAR).
  *
  *  The license and distribution terms for this file may be
@@ -15,6 +15,11 @@
 #include <tmacros.h>
 #include <intrcritical.h>
 
+/* forward declarations to avoid warnings */
+rtems_task Init(rtems_task_argument argument);
+rtems_timer_service_routine test_release_from_isr(rtems_id  timer, void *arg);
+Thread_blocking_operation_States getState(void);
+
 rtems_id Main_task;
 rtems_id Semaphore;
 volatile bool case_hit;
diff --git a/testsuites/sptests/spintrcritical10/init.c b/testsuites/sptests/spintrcritical10/init.c
index 069d444..66306cd 100644
--- a/testsuites/sptests/spintrcritical10/init.c
+++ b/testsuites/sptests/spintrcritical10/init.c
@@ -1,5 +1,5 @@
 /*
- *  COPYRIGHT (c) 1989-2009.
+ *  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 <tmacros.h>
 #include <intrcritical.h>
 
+/* forward declarations to avoid warnings */
+rtems_task Init(rtems_task_argument argument);
+
 rtems_id Main_task;
 
 rtems_task Init(
diff --git a/testsuites/sptests/spintrcritical11/init.c b/testsuites/sptests/spintrcritical11/init.c
index 4ade156..78226f3 100644
--- a/testsuites/sptests/spintrcritical11/init.c
+++ b/testsuites/sptests/spintrcritical11/init.c
@@ -1,5 +1,5 @@
 /*
- *  COPYRIGHT (c) 1989-2009.
+ *  COPYRIGHT (c) 1989-2012.
  *  On-Line Applications Research Corporation (OAR).
  *
  *  The license and distribution terms for this file may be
@@ -14,6 +14,10 @@
 #include <tmacros.h>
 #include <intrcritical.h>
 
+/* forward declarations to avoid warnings */
+rtems_task Init(rtems_task_argument argument);
+rtems_timer_service_routine test_release_from_isr(rtems_id  timer, void *arg);
+
 rtems_id Main_task;
 
 #if defined(EVENT_ANY)
diff --git a/testsuites/sptests/spintrcritical13/init.c b/testsuites/sptests/spintrcritical13/init.c
index 7cf1bcc..c12b015 100644
--- a/testsuites/sptests/spintrcritical13/init.c
+++ b/testsuites/sptests/spintrcritical13/init.c
@@ -26,9 +26,13 @@
 
 #else
   #error "Test Mode not defined"
-
 #endif
 
+/* forward declarations to avoid warnings */
+rtems_task Init(rtems_task_argument argument);
+rtems_timer_service_routine test_release_from_isr(rtems_id  timer, void *arg);
+rtems_timer_service_routine TimerMethod(rtems_id  timer, void *arg);
+
 rtems_id Main_task;
 rtems_id Timer;
 
diff --git a/testsuites/sptests/spintrcritical15/init.c b/testsuites/sptests/spintrcritical15/init.c
index ec535cc..18491de 100644
--- a/testsuites/sptests/spintrcritical15/init.c
+++ b/testsuites/sptests/spintrcritical15/init.c
@@ -14,6 +14,10 @@
 #include <tmacros.h>
 #include <intrcritical.h>
 
+/* forward declarations to avoid warnings */
+rtems_task Init(rtems_task_argument argument);
+rtems_task Secondary_task(rtems_task_argument ignored);
+
 #define TEST_NAME          "15"
 #define INIT_PRIORITY      2
 #define BLOCKER_PRIORITY   1
@@ -29,7 +33,6 @@ rtems_task Secondary_task(
   rtems_status_code     sc;
 
   while (1) {
-
     sc = rtems_semaphore_obtain( Semaphore, RTEMS_DEFAULT_OPTIONS, 1 );
     fatal_directive_status( sc, RTEMS_TIMEOUT, "rtems_semaphore_obtain" );
   }
diff --git a/testsuites/sptests/spintrcritical16/init.c b/testsuites/sptests/spintrcritical16/init.c
index ab6f3a4..3964455 100644
--- a/testsuites/sptests/spintrcritical16/init.c
+++ b/testsuites/sptests/spintrcritical16/init.c
@@ -15,6 +15,11 @@
 #include <tmacros.h>
 #include <intrcritical.h>
 
+/* forward declarations to avoid warnings */
+rtems_task Init(rtems_task_argument argument);
+rtems_timer_service_routine test_release_from_isr(rtems_id  timer, void *arg);
+Thread_blocking_operation_States getState(void);
+
 #define TEST_NAME          "16"
 
 Thread_Control *Main_TCB;
diff --git a/testsuites/sptests/spintrcritical17/init.c b/testsuites/sptests/spintrcritical17/init.c
index bbcfea4..91d7b8d 100644
--- a/testsuites/sptests/spintrcritical17/init.c
+++ b/testsuites/sptests/spintrcritical17/init.c
@@ -18,6 +18,9 @@
 #include <tmacros.h>
 #include <intrcritical.h>
 
+/* forward declarations to avoid warnings */
+rtems_task Init(rtems_task_argument argument);
+
 #define TIMER_COUNT 4
 
 #define TIMER_TRIGGER 0
diff --git a/testsuites/sptests/spmountmgr01/init.c b/testsuites/sptests/spmountmgr01/init.c
index ba0fdbd..01308a5 100644
--- a/testsuites/sptests/spmountmgr01/init.c
+++ b/testsuites/sptests/spmountmgr01/init.c
@@ -17,8 +17,17 @@
 #include <rtems/libio_.h>
 #include <rtems/libcsupport.h>
 
-int fs_mount( rtems_filesystem_mount_table_entry_t *mt_entry,
-	      const void                           *data )
+/* forward declarations to avoid warnings */
+rtems_task Init(rtems_task_argument argument);
+int fs_mount(
+  rtems_filesystem_mount_table_entry_t *mt_entry,
+  const void                           *data
+);
+
+int fs_mount(
+  rtems_filesystem_mount_table_entry_t *mt_entry,
+  const void                           *data
+)
 {
   return 0;
 }
@@ -29,7 +38,7 @@ rtems_task Init(
 {
   int status = 0;
   void *alloc_ptr = (void *)0;
- 
+
   puts( "\n\n*** TEST MOUNT MANAGER ROUTINE - 01 ***" );
 
   puts( "Init - allocating most of heap -- OK" );
@@ -50,25 +59,24 @@ rtems_task Init(
 
   puts( "Init - attempt to make target(NULL) and mount - expect EINVAL" );
   status = mount_and_make_target_path(
-	     NULL,
-	     NULL,
-	     "fs",
-	     0,
-	     NULL );
+             NULL,
+             NULL,
+             "fs",
+             0,
+             NULL );
   rtems_test_assert( status == -1 );
   rtems_test_assert( errno == EINVAL );
 
   puts( "Init - attempt to make target and mount - expect EINVAL" );
   status = mount_and_make_target_path(
-	     NULL,
-	     "/tmp",
-	     "fs",
-	     2,
-	     NULL );
+             NULL,
+             "/tmp",
+             "fs",
+             2,
+             NULL );
   rtems_test_assert( status == -1 );
   rtems_test_assert( errno == EINVAL );
 
-	     
   puts( "Init - register filesystem fs - expect EINVAL" );
   status = rtems_filesystem_register( "fs", fs_mount );
   rtems_test_assert( status == -1 );
@@ -82,7 +90,7 @@ rtems_task Init(
   status = rtems_filesystem_register( "bfs", fs_mount );
   rtems_test_assert( status == -1 );
   rtems_test_assert( errno == EINVAL );
-  
+
   puts( "Init - attempt to unregister with bad args - expect EINVAL" );
   status = rtems_filesystem_unregister( NULL );
   rtems_test_assert( status == -1 );
@@ -91,7 +99,7 @@ rtems_task Init(
   puts( "Init - attempt to unregister fs -- OK" );
   status = rtems_filesystem_unregister( "fs" );
   rtems_test_assert( status == 0 );
-  
+
   puts( "Init - attempt to unregister fs again - expect ENOENT" );
   status = rtems_filesystem_unregister( "fs" );
   rtems_test_assert( status == -1 );
@@ -100,7 +108,7 @@ rtems_task Init(
   puts( "Init - attempt to unregister bfs -- OK" );
   status = rtems_filesystem_unregister( "bfs" );
   rtems_test_assert( status == 0 );
-  
+
   puts( "Init - attempt to unregister bfs again - expect ENOENT" );
   status = rtems_filesystem_unregister( "bfs" );
   rtems_test_assert( status == -1 );
diff --git a/testsuites/sptests/spnotepad01/init.c b/testsuites/sptests/spnotepad01/init.c
index b01b525..464d4ef 100644
--- a/testsuites/sptests/spnotepad01/init.c
+++ b/testsuites/sptests/spnotepad01/init.c
@@ -13,6 +13,9 @@
 
 #include "tmacros.h"
 
+/* forward declarations to avoid warnings */
+rtems_task Init(rtems_task_argument argument);
+
 rtems_task Init(
   rtems_task_argument ignored
 )
diff --git a/testsuites/sptests/spprintk/init.c b/testsuites/sptests/spprintk/init.c
index 7b922f7..e81212d 100644
--- a/testsuites/sptests/spprintk/init.c
+++ b/testsuites/sptests/spprintk/init.c
@@ -16,6 +16,13 @@
 #include <tmacros.h>
 #include <rtems/bspIo.h>
 
+/* forward declarations to avoid warnings */
+rtems_task Init(rtems_task_argument argument);
+int test_getchar(void);
+void do_getchark(void);
+void do_putk(void);
+void do_printk(void);
+
 int test_getchar(void)
 {
   return 0x35;
diff --git a/testsuites/sptests/spprivenv01/init.c b/testsuites/sptests/spprivenv01/init.c
index fb0c1a4..609f85c 100644
--- a/testsuites/sptests/spprivenv01/init.c
+++ b/testsuites/sptests/spprivenv01/init.c
@@ -17,7 +17,11 @@
 #include <rtems/malloc.h>
 #include <rtems/libcsupport.h>
 
-rtems_task task_routine( rtems_task_argument not_used )
+/* forward declarations to avoid warnings */
+rtems_task Init(rtems_task_argument argument);
+rtems_task task_routine(rtems_task_argument not_used);
+
+rtems_task task_routine(rtems_task_argument not_used)
 {
   rtems_status_code sc;
 
@@ -39,8 +43,7 @@ rtems_task Init(
   rtems_id                current_task_id;
   rtems_id                task_id;
   rtems_name              another_task_name;
-  Heap_Information_block  Info;
-  
+
   puts( "\n\n*** TEST USER ENVIRONMENT ROUTINE - 01 ***" );
 
   puts( "Init - allocating most of heap -- OK" );
diff --git a/testsuites/sptests/sprbtree01/init.c b/testsuites/sptests/sprbtree01/init.c
index f94a010..defd1bd 100644
--- a/testsuites/sptests/sprbtree01/init.c
+++ b/testsuites/sptests/sprbtree01/init.c
@@ -13,6 +13,9 @@
 #include <tmacros.h>
 #include <rtems/rbtree.h>
 
+/* forward declarations to avoid warnings */
+rtems_task Init(rtems_task_argument argument);
+
 int numbers[20] = {
 52, 99, 0, 85, 43, 44, 10, 60, 50, 19, 8, 68, 48, 57, 17, 67, 90, 12, 77, 71};
 
diff --git a/testsuites/sptests/spsimplesched01/init.c b/testsuites/sptests/spsimplesched01/init.c
index 0fd06ab..4e34cb2 100644
--- a/testsuites/sptests/spsimplesched01/init.c
+++ b/testsuites/sptests/spsimplesched01/init.c
@@ -13,6 +13,10 @@
 
 #include <tmacros.h>
 
+/* forward declarations to avoid warnings */
+rtems_task Init(rtems_task_argument argument);
+rtems_task Test_task(rtems_task_argument unused);
+
 /*
  *  Keep the names and IDs in global variables so another task can use them.
  */
diff --git a/testsuites/sptests/spsimplesched02/init.c b/testsuites/sptests/spsimplesched02/init.c
index 9da34bc..8b053b6 100644
--- a/testsuites/sptests/spsimplesched02/init.c
+++ b/testsuites/sptests/spsimplesched02/init.c
@@ -1,4 +1,4 @@
-/* 
+/*
  *  COPYRIGHT (c) 2011.
  *  On-Line Applications Research Corporation (OAR).
  *
@@ -13,6 +13,11 @@
 
 #include <tmacros.h>
 
+/* forward declarations to avoid warnings */
+rtems_task Init(rtems_task_argument argument);
+rtems_task Test_task(rtems_task_argument argument);
+void ObtainRelease(bool suspendIdle);
+
 /*
  *  Keep the names and IDs in global variables so another task can use them.
  */
@@ -37,7 +42,7 @@ rtems_task Test_task(
   }
 }
 
-void ObtainRelease( bool suspendIdle ) 
+void ObtainRelease( bool suspendIdle )
 {
   rtems_status_code   status;
 
@@ -128,7 +133,7 @@ rtems_task Init(
 #define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
 #define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
 
-#define CONFIGURE_MAXIMUM_TASKS             3 
+#define CONFIGURE_MAXIMUM_TASKS             3
 #define CONFIGURE_MAXIMUM_SEMAPHORES        2
 
 #define CONFIGURE_RTEMS_INIT_TASKS_TABLE
diff --git a/testsuites/sptests/spsimplesched03/init.c b/testsuites/sptests/spsimplesched03/init.c
index e189bcf..ac1991b 100644
--- a/testsuites/sptests/spsimplesched03/init.c
+++ b/testsuites/sptests/spsimplesched03/init.c
@@ -13,6 +13,9 @@
 
 #include <tmacros.h>
 
+/* forward declarations to avoid warnings */
+rtems_task Init(rtems_task_argument argument);
+
 rtems_task Init(
   rtems_task_argument argument
 )
diff --git a/testsuites/sptests/spstkalloc/init.c b/testsuites/sptests/spstkalloc/init.c
index ea71819..e4d203f 100644
--- a/testsuites/sptests/spstkalloc/init.c
+++ b/testsuites/sptests/spstkalloc/init.c
@@ -13,6 +13,9 @@
 
 #include <tmacros.h>
 
+/* forward declarations to avoid warnings */
+rtems_task Init(rtems_task_argument argument);
+
 #define MAXIMUM_STACKS 3
 
 typedef struct {
diff --git a/testsuites/sptests/spthreadq01/init.c b/testsuites/sptests/spthreadq01/init.c
index 4812484..e03efe6 100644
--- a/testsuites/sptests/spthreadq01/init.c
+++ b/testsuites/sptests/spthreadq01/init.c
@@ -16,6 +16,13 @@
 #include <sys/types.h>
 #include <rtems/score/threadq.h>
 
+/* forward declarations to avoid warnings */
+rtems_task Init(rtems_task_argument argument);
+void threadq_first_empty(
+  const char               *discipline_string,
+  Thread_queue_Disciplines  discipline
+);
+
 void threadq_first_empty(
   const char               *discipline_string,
   Thread_queue_Disciplines  discipline
diff --git a/testsuites/sptests/spwkspace/init.c b/testsuites/sptests/spwkspace/init.c
index 52c1fde..5d5fbab 100644
--- a/testsuites/sptests/spwkspace/init.c
+++ b/testsuites/sptests/spwkspace/init.c
@@ -19,6 +19,9 @@
 
 #include <rtems/score/wkspace.h>
 
+/* forward declarations to avoid warnings */
+rtems_task Init(rtems_task_argument argument);
+
 static void test_workspace_string_duplicate(void)
 {
   char a [] = "abcd";




More information about the vc mailing list