From 5611a81d91d828e052b4be76bd9bd725d2088656 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Thu, 16 Jun 2022 17:36:41 -0400 Subject: [PATCH] Build fix: missing initializer for member 'indexes' MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit gcc 5.4.0 complains that: actions/path.cpp:191:7: warning: missing initializer for member '{anonymous}::lttng_action_path_comm::indexes' [-Wmissing-field-initializers] The structure's members are initialized one by one. Signed-off-by: Jérémie Galarneau Change-Id: I3b365e89c6a11cf65f609a4e14ae972faa2a518d --- src/common/actions/path.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/common/actions/path.cpp b/src/common/actions/path.cpp index 41fb92e27..612ade8c3 100644 --- a/src/common/actions/path.cpp +++ b/src/common/actions/path.cpp @@ -188,9 +188,7 @@ int lttng_action_path_serialize(const struct lttng_action_path *action_path, goto end; } - comm = { - .index_count = (uint32_t) index_count, - }; + comm.index_count = (uint32_t) index_count; ret = lttng_dynamic_buffer_append(&payload->buffer, &comm, sizeof(struct lttng_action_path_comm)); -- 2.34.1