diff --git a/event_groups.c b/event_groups.c index 6f486792bbb..e57e1df0492 100644 --- a/event_groups.c +++ b/event_groups.c @@ -105,9 +105,8 @@ static BaseType_t prvTestWaitCondition( const EventBits_t uxCurrentEventBits, /* Sanity check that the size of the structure used to declare a * variable of type StaticEventGroup_t equals the size of the real * event group structure. */ - volatile size_t xSize = sizeof( StaticEventGroup_t ); - configASSERT( xSize == sizeof( EventGroup_t ) ); - } /*lint !e529 xSize is referenced if configASSERT() is defined. */ + configASSERT( sizeof( StaticEventGroup_t ) == sizeof( EventGroup_t ) ); + } #endif /* configASSERT_DEFINED */ /* The user has provided a statically allocated event group - use it. */