Correct compiler warnings in trace recorder code.

This commit is contained in:
Richard Barry 2013-07-16 12:23:25 +00:00
parent 4578154959
commit d04c2fa753
3 changed files with 6 additions and 3 deletions

View file

@ -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();

View file

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