Fix GCC warning Remove `-Wno-missing-braces` flag Change-Id: I06b5d4cb2d60a4d219a63f798d288c0d51c75ba6
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 983d93e..7004a7d 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)) {