From: RichardBarry Date: Fri, 17 Oct 2008 13:21:18 +0000 (+0000) Subject: Remove some compiler warnings generated by CodeWarrior. X-Git-Tag: V5.1.2~204 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9e695db3848e1abec902d91a03fdbd2c5431da42;p=freertos Remove some compiler warnings generated by CodeWarrior. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@492 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- diff --git a/Demo/Common/ethernet/lwIP_130/contrib/port/FreeRTOS/sys_arch.c b/Demo/Common/ethernet/lwIP_130/contrib/port/FreeRTOS/sys_arch.c index 0fc4274b8..1ff37d44e 100644 --- a/Demo/Common/ethernet/lwIP_130/contrib/port/FreeRTOS/sys_arch.c +++ b/Demo/Common/ethernet/lwIP_130/contrib/port/FreeRTOS/sys_arch.c @@ -56,6 +56,8 @@ sys_mbox_t sys_mbox_new(int size) { xQueueHandle mbox; + ( void ) size; + mbox = xQueueCreate( archMESG_QUEUE_LENGTH, sizeof( void * ) ); #if SYS_STATS @@ -98,7 +100,7 @@ void sys_mbox_free(sys_mbox_t mbox) // Posts the "msg" to the mailbox. void sys_mbox_post(sys_mbox_t mbox, void *data) { - while ( xQueueSendToBack(mbox, &data, portMAX_DELAY ) != pdTRUE ); + while ( xQueueSendToBack(mbox, &data, portMAX_DELAY ) != pdTRUE ){} } @@ -171,7 +173,7 @@ portTickType StartTime, EndTime, Elapsed; } else // block forever for a message. { - while( pdTRUE != xQueueReceive( mbox, &(*msg), portMAX_DELAY ) ); // time is arbitrary + while( pdTRUE != xQueueReceive( mbox, &(*msg), portMAX_DELAY ) ){} // time is arbitrary EndTime = xTaskGetTickCount(); Elapsed = (EndTime - StartTime) * portTICK_RATE_MS; @@ -275,7 +277,7 @@ portTickType StartTime, EndTime, Elapsed; } else // must block without a timeout { - while( xSemaphoreTake( sem, portMAX_DELAY ) != pdTRUE ); + while( xSemaphoreTake( sem, portMAX_DELAY ) != pdTRUE ){} EndTime = xTaskGetTickCount(); Elapsed = (EndTime - StartTime) * portTICK_RATE_MS; @@ -427,6 +429,7 @@ void sys_arch_unprotect(sys_prot_t pval) */ void sys_assert( const char *msg ) { + ( void ) msg; /*FSL:only needed for debugging printf(msg); printf("\n\r");