fix(system): fixed warnings related to ununsed var if asserts disabled

This commit is contained in:
Marius Vikhammer
2024-08-19 12:02:03 +08:00
parent ff8265b6b3
commit 0d140f38ea
13 changed files with 40 additions and 20 deletions

View File

@@ -115,6 +115,7 @@ static BaseType_t prvTestWaitCondition( const EventBits_t uxCurrentEventBits,
* event group structure. */
volatile size_t xSize = sizeof( StaticEventGroup_t );
configASSERT( xSize == sizeof( EventGroup_t ) );
( void ) xSize; /* Prevent unused variable warning when configASSERT() is not used. */
} /*lint !e529 xSize is referenced if configASSERT() is defined. */
#endif /* configASSERT_DEFINED */