Build fix: missing initializer for member 'indexes'
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 16 Jun 2022 21:36:41 +0000 (17:36 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 17 Jun 2022 14:56:44 +0000 (10:56 -0400)
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 <jeremie.galarneau@efficios.com>
Change-Id: I3b365e89c6a11cf65f609a4e14ae972faa2a518d

src/common/actions/path.cpp

index 41fb92e27bddfc2e599a72807e9de7feefaeb216..612ade8c31a69e7696312c9882c145b1700335e4 100644 (file)
@@ -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));
This page took 0.031819 seconds and 4 git commands to generate.