From dfa71ca332b11ef4605577abdd6c029501258ef7 Mon Sep 17 00:00:00 2001 From: Flavio Ceolin Date: Fri, 22 Jul 2022 10:10:18 -0700 Subject: [PATCH] lib: os: Fix warning on XCC xcc compiler complains about how fdtable variable is initialized: """ warning: missing braces around initialize """ Signed-off-by: Flavio Ceolin --- lib/os/fdtable.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/os/fdtable.c b/lib/os/fdtable.c index 28db433e5f16..983e3e79fcc3 100644 --- a/lib/os/fdtable.c +++ b/lib/os/fdtable.c @@ -53,7 +53,9 @@ static struct fd_entry fdtable[CONFIG_POSIX_MAX_FDS] = { .refcount = ATOMIC_INIT(1) }, #else + { 0 + }, #endif };