Skip to content

Commit

Permalink
lib: os: Fix warning on XCC
Browse files Browse the repository at this point in the history
xcc compiler complains about how fdtable variable is initialized:
"""
warning: missing braces around initialize
"""

Signed-off-by: Flavio Ceolin <[email protected]>
  • Loading branch information
Flavio Ceolin authored and nashif committed Jul 25, 2022
1 parent 7f894f7 commit dfa71ca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/os/fdtable.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ static struct fd_entry fdtable[CONFIG_POSIX_MAX_FDS] = {
.refcount = ATOMIC_INIT(1)
},
#else
{
0
},
#endif
};

Expand Down

0 comments on commit dfa71ca

Please sign in to comment.