Fix C90 Compilation Failure (#359)
This issue was reported here: https://github.com/FreeRTOS/FreeRTOS-Kernel/issues/358
Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
diff --git a/event_groups.c b/event_groups.c
index 510ea3a..9abfada 100644
--- a/event_groups.c
+++ b/event_groups.c
@@ -627,10 +627,12 @@
void vEventGroupDelete( EventGroupHandle_t xEventGroup )
{
- configASSERT( xEventGroup );
-
EventGroup_t * pxEventBits = xEventGroup;
- const List_t * pxTasksWaitingForBits = &( pxEventBits->xTasksWaitingForBits );
+ const List_t * pxTasksWaitingForBits;
+
+ configASSERT( pxEventBits );
+
+ pxTasksWaitingForBits = &( pxEventBits->xTasksWaitingForBits );
vTaskSuspendAll();
{