From 8e2c5d6883d231472b1c9305617ea53bfa450cf4 Mon Sep 17 00:00:00 2001 From: richardbarry Date: Tue, 20 May 2008 18:23:44 +0000 Subject: [PATCH] Remove compiler warnings and insert missing return statement. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@366 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- .../RTOSDemo/flop/flop-reg-test.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Demo/PPC405_FPU_Xilinx_Virtex4_GCC/RTOSDemo/flop/flop-reg-test.c b/Demo/PPC405_FPU_Xilinx_Virtex4_GCC/RTOSDemo/flop/flop-reg-test.c index b2a4c09c4..355084dd4 100644 --- a/Demo/PPC405_FPU_Xilinx_Virtex4_GCC/RTOSDemo/flop/flop-reg-test.c +++ b/Demo/PPC405_FPU_Xilinx_Virtex4_GCC/RTOSDemo/flop/flop-reg-test.c @@ -109,7 +109,7 @@ static void vFlopTest2( void *pvParameters ); /* Buffers into which the flop registers will be saved. There is a buffer for both tasks. */ -static volatile unsigned portLONG ulFlopRegisters[ flopNUMBER_OF_TASKS ][ portNO_FLOP_REGISTERS_TO_SAVE ] = { 0 }; +static volatile unsigned portLONG ulFlopRegisters[ flopNUMBER_OF_TASKS ][ portNO_FLOP_REGISTERS_TO_SAVE ]; /* Variables that are incremented by the tasks to indicate that they are still running. */ @@ -156,6 +156,9 @@ unsigned portBASE_TYPE x, y, z = flopSTART_VALUE; static void vFlopTest1( void *pvParameters ) { + /* Just to remove compiler warning. */ + ( void ) pvParameters; + for( ;; ) { /* The values from the buffer should have now been written to the flop @@ -176,6 +179,9 @@ static void vFlopTest1( void *pvParameters ) static void vFlopTest2( void *pvParameters ) { + /* Just to remove compiler warning. */ + ( void ) pvParameters; + for( ;; ) { /* The values from the buffer should have now been written to the flop @@ -232,5 +238,7 @@ static unsigned portLONG ulLastFlop1CycleCount = 0, ulLastFlop2CycleCount = 0; ulLastFlop1CycleCount = ulFlop1CycleCount; ulLastFlop2CycleCount = ulFlop2CycleCount; + + return xReturn; } -- 2.39.2