]> git.sur5r.net Git - freertos/commitdiff
Correct compiler warnings when a certain configuration is set in FreeRTOSConfig.h.
authorrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Tue, 13 Oct 2009 09:12:30 +0000 (09:12 +0000)
committerrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Tue, 13 Oct 2009 09:12:30 +0000 (09:12 +0000)
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@922 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

Source/portable/GCC/ARM_CM3_MPU/port.c

index 0074c5bce69030917a0767daee17c0142b5b941e..93caade95713cb6c2a7eabe73ece1f0472b95680 100644 (file)
@@ -751,14 +751,15 @@ portBASE_TYPE xRunningPrivileged = prvRaisePrivilege();
 }\r
 /*-----------------------------------------------------------*/\r
 \r
-void MPU_vTaskList( signed char *pcWriteBuffer )\r
-{\r
-portBASE_TYPE xRunningPrivileged = prvRaisePrivilege();\r
-\r
-       vTaskList( pcWriteBuffer );\r
-    portRESET_PRIVILEGE( xRunningPrivileged );\r
-}\r
-\r
+#if ( configUSE_TRACE_FACILITY == 1 )\r
+       void MPU_vTaskList( signed char *pcWriteBuffer )\r
+       {\r
+       portBASE_TYPE xRunningPrivileged = prvRaisePrivilege();\r
+       \r
+               vTaskList( pcWriteBuffer );\r
+               portRESET_PRIVILEGE( xRunningPrivileged );\r
+       }\r
+#endif\r
 /*-----------------------------------------------------------*/\r
 \r
 #if ( configGENERATE_RUN_TIME_STATS == 1 )\r