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 'testsuites/libtests/stackchk')
-rw-r--r-- | testsuites/libtests/stackchk/blow.c | 15 |
1 files changed, 11 insertions, 4 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 :) |