From 4676aed361acfa2a01011bc6593894aa6fa45aa1 Mon Sep 17 00:00:00 2001 From: pi1024e <49824824+pi1024e@users.noreply.github.com> Date: Tue, 25 Feb 2020 19:42:40 -0500 Subject: [PATCH] Braces around subobject of initialization warning fix (#32328) * Braces around subobject of initialization warning fix * Fix warning * Update lifo-semaphore.h * Update lifo-semaphore.h * Update lifo-semaphore.h * Remove unnecessary braces * Update lifo-semaphore.c * Update lifo-semaphore.c Co-authored-by: Ryan Lucia --- src/mono/mono/utils/lifo-semaphore.c | 2 +- src/mono/mono/utils/lifo-semaphore.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mono/mono/utils/lifo-semaphore.c b/src/mono/mono/utils/lifo-semaphore.c index 9ff286b..624e2bb 100644 --- a/src/mono/mono/utils/lifo-semaphore.c +++ b/src/mono/mono/utils/lifo-semaphore.c @@ -23,7 +23,7 @@ mono_lifo_semaphore_delete (LifoSemaphore *semaphore) int32_t mono_lifo_semaphore_timed_wait (LifoSemaphore *semaphore, int32_t timeout_ms) { - LifoSemaphoreWaitEntry wait_entry = { 0 }; + LifoSemaphoreWaitEntry wait_entry = {0}; mono_coop_cond_init (&wait_entry.condition); mono_coop_mutex_lock (&semaphore->mutex); diff --git a/src/mono/mono/utils/lifo-semaphore.h b/src/mono/mono/utils/lifo-semaphore.h index a89ee93..766f41a 100644 --- a/src/mono/mono/utils/lifo-semaphore.h +++ b/src/mono/mono/utils/lifo-semaphore.h @@ -7,10 +7,10 @@ typedef struct _LifoSemaphore LifoSemaphore; typedef struct _LifoSemaphoreWaitEntry LifoSemaphoreWaitEntry; struct _LifoSemaphoreWaitEntry { - MonoCoopCond condition; - int signaled; LifoSemaphoreWaitEntry *previous; LifoSemaphoreWaitEntry *next; + MonoCoopCond condition; + int signaled; }; struct _LifoSemaphore { -- 2.7.4