gcc 5.4.0 complains that:
relayd/relayd.cpp:1353:2: warning: missing initializer for member 'lttcomm_relayd_create_trace_chunk::override_name' [-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: I6607c46e4aa98017183f41fc8be9b0226b70cf29
}
chunk_name_length = overridden_name ? (strlen(chunk_name) + 1) : 0;
- msg = (typeof(msg)){
- .chunk_id = htobe64(chunk_id),
- .creation_timestamp = htobe64((uint64_t) creation_timestamp),
- .override_name_length = htobe32((uint32_t) chunk_name_length),
- };
+ msg.chunk_id = htobe64(chunk_id);
+ msg.creation_timestamp = htobe64((uint64_t) creation_timestamp);
+ msg.override_name_length = htobe32((uint32_t) chunk_name_length);
ret = lttng_dynamic_buffer_append(&payload, &msg, sizeof(msg));
if (ret) {