From 5ed3d21f6e4ffc9516fd8c0c17e825d42fa317cb Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Thu, 24 Dec 2020 00:55:30 +0300 Subject: [PATCH] testsem.c: fix -Wmissing-braces warnings. --- test/testsem.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/testsem.c b/test/testsem.c index e33a1301f..267cfeaea 100644 --- a/test/testsem.c +++ b/test/testsem.c @@ -62,7 +62,7 @@ ThreadFuncRealWorld(void *data) static void TestRealWorld(int init_sem) { - Thread_State thread_states[NUM_THREADS] = {0}; + Thread_State thread_states[NUM_THREADS] = { {0} }; int i; int loop_count; @@ -181,7 +181,7 @@ TestOverheadContended(SDL_bool try_wait) Uint32 start_ticks; Uint32 end_ticks; Uint32 duration; - Thread_State thread_states[NUM_THREADS] = {0}; + Thread_State thread_states[NUM_THREADS] = { {0} }; char textBuffer[1024]; int loop_count; int content_count;