freertos: Fix unused variable warning

This commit fixes an unused variable warning when
configASSERT is undefined.
This commit is contained in:
Darian Leung 2019-02-16 01:42:00 +08:00
parent 91aa35e831
commit aaaa491c42
2 changed files with 2 additions and 0 deletions

View File

@ -338,6 +338,7 @@ Queue_t * const pxQueue = ( Queue_t * ) xQueue;
the real queue and semaphore structures. */
volatile size_t xSize = sizeof( StaticQueue_t );
configASSERT( xSize == sizeof( Queue_t ) );
( void ) xSize; /* Keeps lint quiet when configASSERT() is not defined. */
}
#endif /* configASSERT_DEFINED */

View File

@ -347,6 +347,7 @@ BaseType_t xReturn = pdFAIL;
structures. */
volatile size_t xSize = sizeof( StaticTimer_t );
configASSERT( xSize == sizeof( Timer_t ) );
( void ) xSize; /* Keeps lint quiet when configASSERT() is not defined. */
}
#endif /* configASSERT_DEFINED */