From 494e9677fb7b962058a43677861271f9e2018193 Mon Sep 17 00:00:00 2001 From: richardbarry Date: Wed, 27 Jul 2011 12:02:08 +0000 Subject: [PATCH] Clear off a few compiler warnings generated when pedantic warnings are switched on. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@1505 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- .../FreeRTOS_Source/portable/GCC/MicroBlaze/port_exceptions.c | 2 ++ .../FreeRTOS_Source/portable/GCC/MicroBlaze/portasm.S | 1 + 2 files changed, 3 insertions(+) diff --git a/Demo/MicroBlaze_Spartan-6_EthernetLite/SDKProjects/RTOSDemoSource/FreeRTOS_Source/portable/GCC/MicroBlaze/port_exceptions.c b/Demo/MicroBlaze_Spartan-6_EthernetLite/SDKProjects/RTOSDemoSource/FreeRTOS_Source/portable/GCC/MicroBlaze/port_exceptions.c index 2ebfe8bd1..f5ed3c985 100644 --- a/Demo/MicroBlaze_Spartan-6_EthernetLite/SDKProjects/RTOSDemoSource/FreeRTOS_Source/portable/GCC/MicroBlaze/port_exceptions.c +++ b/Demo/MicroBlaze_Spartan-6_EthernetLite/SDKProjects/RTOSDemoSource/FreeRTOS_Source/portable/GCC/MicroBlaze/port_exceptions.c @@ -116,6 +116,8 @@ implementation will be called instead. */ extern void vApplicationExceptionRegisterDump( xPortRegisterDump *xRegisterDump ) __attribute__((weak)); void vApplicationExceptionRegisterDump( xPortRegisterDump *xRegisterDump ) { + ( void ) xRegisterDump; + for( ;; ) { portNOP(); diff --git a/Demo/MicroBlaze_Spartan-6_EthernetLite/SDKProjects/RTOSDemoSource/FreeRTOS_Source/portable/GCC/MicroBlaze/portasm.S b/Demo/MicroBlaze_Spartan-6_EthernetLite/SDKProjects/RTOSDemoSource/FreeRTOS_Source/portable/GCC/MicroBlaze/portasm.S index 801504a80..8d99520b2 100644 --- a/Demo/MicroBlaze_Spartan-6_EthernetLite/SDKProjects/RTOSDemoSource/FreeRTOS_Source/portable/GCC/MicroBlaze/portasm.S +++ b/Demo/MicroBlaze_Spartan-6_EthernetLite/SDKProjects/RTOSDemoSource/FreeRTOS_Source/portable/GCC/MicroBlaze/portasm.S @@ -71,6 +71,7 @@ back into the caller stack. */ #define portMINUS_CONTEXT_SIZE -136 #else #define portCONTEXT_SIZE 132 + #define portMINUS_CONTEXT_SIZE -132 #endif /* Offsets from the stack pointer at which saved registers are placed. */ -- 2.39.5