gcc 5.4.0 complains that:
evaluation.cpp:30:2: warning: missing initializer for member 'lttng_evaluation_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: I2784138b00af34b2bc47ed28097ab32afaa379d2
struct lttng_payload *payload)
{
int ret;
- struct lttng_evaluation_comm evaluation_comm = {
- .type = (int8_t) evaluation->type
- };
+ struct lttng_evaluation_comm evaluation_comm;
+
+ evaluation_comm.type = (int8_t) evaluation->type;
ret = lttng_dynamic_buffer_append(&payload->buffer, &evaluation_comm,
sizeof(evaluation_comm));