From: Jérémie Galarneau Date: Thu, 16 Jun 2022 21:36:41 +0000 (-0400) Subject: Build fix: missing initializer for member 'indexes' X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=5611a81d91d828e052b4be76bd9bd725d2088656;p=lttng-tools.git Build fix: missing initializer for member 'indexes' 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 --- 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));