Correct compiler warnings in trace recorder code.

pull/1/head
Richard Barry 12 years ago
parent 4578154959
commit d04c2fa753

@ -128,7 +128,7 @@ void vTraceStoreLowPower(uint32_t flag)
lp = (LPEvent*)xTraceNextFreeEventBufferSlot();
if (lp != NULL)
{
lp->type = LOW_POWER_BEGIN + flag; /* BEGIN or END depending on flag */
lp->type = LOW_POWER_BEGIN + ( uint8_t ) flag; /* BEGIN or END depending on flag */
lp->dts = dts;
prvTraceUpdateCounters();

@ -208,6 +208,7 @@ char* xTraceGetLastError(void)
******************************************************************************/
void vTraceClearError(int resetErrorMessage)
{
( void ) resetErrorMessage;
traceErrorMessage = NULL;
RecorderDataPtr->internalErrorOccured = 0;
}

@ -52,8 +52,10 @@
#error FreeRTOS.h must be included before FreeRTOS_Sockets.h.
#endif
#ifndef TASK_H
#error The FreeRTOS header file task.h must be included before FreeRTOS_Sockets.h.
#ifndef INC_TASK_H
#ifndef TASK_H /* For compatibility with older FreeRTOS versions. */
#error The FreeRTOS header file task.h must be included before FreeRTOS_Sockets.h.
#endif
#endif
/* Assigned to an xSocket_t variable when the socket is not valid, probably

Loading…
Cancel
Save