From 88086cbd2244d3366e8ec33e5605e4261f1262d5 Mon Sep 17 00:00:00 2001 From: Paul Helter Date: Sun, 23 Oct 2022 17:07:08 -0700 Subject: [PATCH] Fixing compiler issue with unused variable - no need to declare variable. --- event_groups.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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. */