gcc 5.4.0 complains that:
error-query.cpp:777:2: warning: missing initializer for member '{anonymous}::lttng_error_query_comm::payload' [-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: I1264bc2da7e8ff6ec6c740341a381b33bae643d1
struct lttng_payload *payload)
{
int ret;
- const struct lttng_error_query_comm header = {
- .target_type = (decltype(header.target_type)) query->target_type,
- };
+ struct lttng_error_query_comm header;
+
+ header.target_type = (decltype(header.target_type)) query->target_type;
ret = lttng_dynamic_buffer_append(
&payload->buffer, &header, sizeof(header));