From 6c2de6052d450fa36338ed0c082647b9d535a928 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 11 May 2012 14:12:11 -0500 Subject: psxtests - Eliminate missing prototype warnings --- testsuites/psxtests/psxspin01/main.c | 16 +++++++++++----- testsuites/psxtests/psxspin01/test.c | 14 +++++++++++--- 2 files changed, 22 insertions(+), 8 deletions(-) (limited to 'testsuites/psxtests/psxspin01') diff --git a/testsuites/psxtests/psxspin01/main.c b/testsuites/psxtests/psxspin01/main.c index 292901d851..26497c1894 100644 --- a/testsuites/psxtests/psxspin01/main.c +++ b/testsuites/psxtests/psxspin01/main.c @@ -1,7 +1,11 @@ -/* - * Simple test program wrapper for Spinlocks +/** + * @file * - * COPYRIGHT (c) 1989-2008. + * Simple test program wrapper for Spinlocks + */ + +/* + * COPYRIGHT (c) 1989-2012. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -17,8 +21,10 @@ #include #include - -void test_main( void ); + +/* forward declarations to avoid warnings */ +rtems_task Init(rtems_task_argument ignored); +void test_main(void); rtems_task Init( rtems_task_argument ignored diff --git a/testsuites/psxtests/psxspin01/test.c b/testsuites/psxtests/psxspin01/test.c index eebde0fc8b..4a0842f2d0 100644 --- a/testsuites/psxtests/psxspin01/test.c +++ b/testsuites/psxtests/psxspin01/test.c @@ -1,7 +1,11 @@ -/* - * This test exercises the POSIX Spinlock manager. +/** + * @file * - * COPYRIGHT (c) 1989-2009. + * This test exercises the POSIX Spinlock manager. + */ + +/* + * COPYRIGHT (c) 1989-2012. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -22,6 +26,10 @@ #include /* for task creation */ +/* forward declarations to avoid warnings */ +int test_main(void); +rtems_task SpinlockThread(rtems_task_argument arg); + pthread_spinlock_t Spinlock; volatile int mainThreadSpinning; -- cgit v1.2.3