static volatile UBaseType_t uxCycleCounter = 0;\r
\r
/* A variable that gets set to pdTRUE if an error is detected. */\r
-static BaseType_t xErrorOccurred = pdFALSE;\r
+static volatile BaseType_t xErrorOccurred = pdFALSE;\r
\r
/*-----------------------------------------------------------*/\r
\r
xTickCount = xTaskGetTickCount();\r
xReturned = xSemaphoreTake( xSemaphore, xShortBlockTime );\r
\r
- if( ( xTaskGetTickCount() - xTickCount) < xShortBlockTime )\r
+ if( ( ( TickType_t ) ( xTaskGetTickCount() - xTickCount ) ) < xShortBlockTime )\r
{\r
/* Did not block on the semaphore as long as expected. */\r
xErrorOccurred = pdTRUE;\r
xTickCount = xTaskGetTickCount();\r
xReturned = xSemaphoreTake( xSemaphore, xShortBlockTime );\r
\r
- if( ( xTaskGetTickCount() - xTickCount) < xShortBlockTime )\r
+ if( ( ( TickType_t ) ( xTaskGetTickCount() - xTickCount ) ) < xShortBlockTime )\r
{\r
/* Did not block on the semaphore as long as expected. */\r
xErrorOccurred = pdTRUE;\r