Merge "Fix GCC warning"
diff --git a/cmake/sparrow_ops.cmake b/cmake/sparrow_ops.cmake
index 23a7359..56d2dfd 100644
--- a/cmake/sparrow_ops.cmake
+++ b/cmake/sparrow_ops.cmake
@@ -81,7 +81,6 @@
"-Wall"
# Disable warnings we don't care about or that generally have a low
# signal/noise ratio.
- "-Wno-missing-braces"
)
diff --git a/model_util/util.c b/model_util/util.c
index 7d34a53..adee634 100644
--- a/model_util/util.c
+++ b/model_util/util.c
@@ -207,7 +207,7 @@
}
// Validate output and gather buffers.
- iree_hal_buffer_mapping_t mapped_memories[MAX_MODEL_OUTPUTS] = {{0}};
+ iree_hal_buffer_mapping_t mapped_memories[MAX_MODEL_OUTPUTS] = {{}};
for (int index_output = 0; index_output < model->num_output; index_output++) {
iree_hal_buffer_view_t *ret_buffer_view = NULL;
if (iree_status_is_ok(result)) {