From: pi1024e <49824824+pi1024e@users.noreply.github.com> Date: Wed, 26 Feb 2020 00:42:40 +0000 (-0500) Subject: Braces around subobject of initialization warning fix (#32328) X-Git-Tag: submit/tizen/20210909.063632~9498 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4676aed361acfa2a01011bc6593894aa6fa45aa1;p=platform%2Fupstream%2Fdotnet%2Fruntime.git 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 --- 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 {