From 4c86e3d8bee2680c9be999b4627b19438f1ae728 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 11 May 2012 12:20:47 -0500 Subject: libtmtests - Eliminate missing prototype warnings --- testsuites/libtests/stringto01/init.c | 5 ++++- testsuites/libtests/stringto01/stringto_test_template.h | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'testsuites/libtests/stringto01') diff --git a/testsuites/libtests/stringto01/init.c b/testsuites/libtests/stringto01/init.c index 005d3656d1..283e0d8401 100644 --- a/testsuites/libtests/stringto01/init.c +++ b/testsuites/libtests/stringto01/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 @@ -18,6 +18,9 @@ #include +/* forward declarations to avoid warnings */ +rtems_task Init(rtems_task_argument argument); + #define __STRING(x) #x /* stringify without expanding x */ #define __XSTRING(x) __STRING(x) /* expand x, then stringify */ diff --git a/testsuites/libtests/stringto01/stringto_test_template.h b/testsuites/libtests/stringto01/stringto_test_template.h index 1b951f72bb..7b6ee52a19 100644 --- a/testsuites/libtests/stringto01/stringto_test_template.h +++ b/testsuites/libtests/stringto01/stringto_test_template.h @@ -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 @@ -23,6 +23,9 @@ #error "what type are we testing?" #endif +/* forward declarations to avoid warnings */ +void TEST_STRING_TO_NAME(void); + void TEST_STRING_TO_NAME(void) { TEST_STRING_TO_TYPE value; -- cgit v1.2.3