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(); lp = (LPEvent*)xTraceNextFreeEventBufferSlot();
if (lp != NULL) 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; lp->dts = dts;
prvTraceUpdateCounters(); prvTraceUpdateCounters();

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

@ -52,8 +52,10 @@
#error FreeRTOS.h must be included before FreeRTOS_Sockets.h. #error FreeRTOS.h must be included before FreeRTOS_Sockets.h.
#endif #endif
#ifndef TASK_H #ifndef INC_TASK_H
#error The FreeRTOS header file task.h must be included before FreeRTOS_Sockets.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 #endif
/* Assigned to an xSocket_t variable when the socket is not valid, probably /* Assigned to an xSocket_t variable when the socket is not valid, probably

Loading…
Cancel
Save