dvidelabs / flatcc

FlatBuffers Compiler and Library in C for C
Apache License 2.0
646 stars 182 forks source link

src/compiler/semantics.c: Fix a warning #218

Closed yamt closed 2 years ago

yamt commented 2 years ago

Fix the following warning with clang.

[  7%] Building C object src/compiler/CMakeFiles/flatcc.dir/semantics.c.o
/Users/yamamoto/git/flatcc/src/compiler/semantics.c:1548:26: error: suggest
      braces around initialization of subobject [-Werror,-Wmissing-braces]
    fb_value_t index = { 0 };
                         ^
                         {}
/Users/yamamoto/git/flatcc/src/compiler/semantics.c:1548:26: error: suggest
      braces around initialization of subobject [-Werror,-Wmissing-braces]
    fb_value_t index = { 0 };
                         ^
                         {}
2 errors generated.