summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>2009-10-13 09:12:30 +0000
committerrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>2009-10-13 09:12:30 +0000
commit05dbbc9b10789dda982a215bcad2c3a06254bce3 (patch)
tree6ed3c2404bcae8d345aba97bfeda6c3c93db72cb
parentd678ffa4a95f1d157838b85607f1459eb910e8f0 (diff)
downloadfreertos-05dbbc9b10789dda982a215bcad2c3a06254bce3.tar.gz
Correct compiler warnings when a certain configuration is set in FreeRTOSConfig.h.
git-svn-id: http://svn.code.sf.net/p/freertos/code/trunk@922 1d2547de-c912-0410-9cb9-b8ca96c0e9e2
-rw-r--r--Source/portable/GCC/ARM_CM3_MPU/port.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/Source/portable/GCC/ARM_CM3_MPU/port.c b/Source/portable/GCC/ARM_CM3_MPU/port.c
index 0074c5bce..93caade95 100644
--- a/Source/portable/GCC/ARM_CM3_MPU/port.c
+++ b/Source/portable/GCC/ARM_CM3_MPU/port.c
@@ -751,14 +751,15 @@ portBASE_TYPE xRunningPrivileged = prvRaisePrivilege();
}
/*-----------------------------------------------------------*/
-void MPU_vTaskList( signed char *pcWriteBuffer )
-{
-portBASE_TYPE xRunningPrivileged = prvRaisePrivilege();
-
- vTaskList( pcWriteBuffer );
- portRESET_PRIVILEGE( xRunningPrivileged );
-}
-
+#if ( configUSE_TRACE_FACILITY == 1 )
+ void MPU_vTaskList( signed char *pcWriteBuffer )
+ {
+ portBASE_TYPE xRunningPrivileged = prvRaisePrivilege();
+
+ vTaskList( pcWriteBuffer );
+ portRESET_PRIVILEGE( xRunningPrivileged );
+ }
+#endif
/*-----------------------------------------------------------*/
#if ( configGENERATE_RUN_TIME_STATS == 1 )