]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS-Plus/Source/FreeRTOS-Plus-Trace/trcUser.c
Remove compiler warnings from the trace recorder code.
[freertos] / FreeRTOS-Plus / Source / FreeRTOS-Plus-Trace / trcUser.c
index 3f33cc00476d70caa34854167ba0649edb2a7e13..114ac1ec7310c6c203af0058b0f91c590320c8e5 100644 (file)
@@ -1101,7 +1101,7 @@ void vTracePrintF_Helper(traceLabel eventLabel, const char* formatStr, va_list v
         events that would be partially overwritten. If so, they must be "killed"\r
         by replacing the user event and following data with NULL events (i.e.,\r
         using a memset to zero).*/\r
-        prvCheckDataToBeOverwrittenForMultiEntryEvents(noOfSlots);\r
+        prvCheckDataToBeOverwrittenForMultiEntryEvents((uint8_t)noOfSlots);\r
 #endif\r
         /* Copy the local buffer to the main buffer */\r
         (void)memcpy(& RecorderDataPtr->eventData[RecorderDataPtr->nextFreeIndex * 4],\r
@@ -1112,7 +1112,7 @@ void vTracePrintF_Helper(traceLabel eventLabel, const char* formatStr, va_list v
         main USER_EVENT entry (Note: important that this is after the memcpy,\r
         but within the critical section!)*/\r
         RecorderDataPtr->eventData[RecorderDataPtr->nextFreeIndex * 4] =\r
-          (uint8_t) USER_EVENT + noOfSlots - 1;\r
+          (uint8_t) ( USER_EVENT + noOfSlots - 1 );\r
 \r
         /* Update the main buffer event index (already checked that it fits in\r
         the buffer, so no need to check for wrapping)*/\r