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/stackchk/blow.c | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'testsuites/libtests/stackchk/blow.c') 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 #include -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 :) -- cgit v1.2.3