diff options
author | Joel Sherrill <joel.sherrill@oarcorp.com> | 2012-05-11 12:20:47 -0500 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2012-05-11 12:20:47 -0500 |
commit | 4c86e3d8bee2680c9be999b4627b19438f1ae728 (patch) | |
tree | e98cb2c409079e5507a1ddf9f5764781697f1b71 /testsuites/libtests/stackchk | |
parent | tmoverhd - Eliminate warnings (diff) | |
download | rtems-4c86e3d8bee2680c9be999b4627b19438f1ae728.tar.bz2 |
libtmtests - Eliminate missing prototype warnings
Diffstat (limited to '')
-rw-r--r-- | testsuites/libtests/stackchk/blow.c | 15 | ||||
-rw-r--r-- | testsuites/libtests/stackchk01/init.c | 5 |
2 files changed, 15 insertions, 5 deletions
diff --git a/testsuites/libtests/stackchk/blow.c b/testsuites/libtests/stackchk/blow.c index 12162420a2..5bcc8eea4a 100644 --- a/testsuites/libtests/stackchk/blow.c +++ b/testsuites/libtests/stackchk/blow.c @@ -3,7 +3,7 @@ * This set of three tasks do some simple task switching for about * 15 seconds and then call a routine to "blow the stack". * - * COPYRIGHT (c) 1989-1999. + * COPYRIGHT (c) 1989-2012. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -18,14 +18,21 @@ #include <rtems.h> #include <rtems/stackchk.h> -void b(void) {} +/* forward declarations to avoid warnings */ +void b(void); +void blow_stack(void); -void blow_stack( void ) +void b(void) +{ +} + +void blow_stack(void) { volatile uint32_t *low, *high; unsigned char *area; -b(); + b(); + /* * Destroy the first and last 16 bytes of our stack... Hope it * does not cause problems :) diff --git a/testsuites/libtests/stackchk01/init.c b/testsuites/libtests/stackchk01/init.c index deed8f1f46..f54f1af4a3 100644 --- a/testsuites/libtests/stackchk01/init.c +++ b/testsuites/libtests/stackchk01/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,9 @@ #include <tmacros.h> #include <rtems/stackchk.h> +/* forward declarations to avoid warnings */ +rtems_task Init(rtems_task_argument argument); + rtems_task Init( rtems_task_argument argument ) |