Skip to content

Commit

Permalink
Fixing compiler issue with unused variable - no need to declare varia…
Browse files Browse the repository at this point in the history
…ble.
  • Loading branch information
phelter committed Oct 24, 2022
1 parent 6585cf7 commit 88086cb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions event_groups.c
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down

0 comments on commit 88086cb

Please sign in to comment.