gcc 5.4.0 complains that:
notification.cpp:43:57: warning: missing initializer for member 'lttng_notification_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: Iebb2f14df21f6db9dceaf708af6ef12efda1b929
{
int ret;
size_t header_offset, size_before_payload;
- struct lttng_notification_comm notification_comm = { 0 };
+ struct lttng_notification_comm notification_comm;
struct lttng_notification_comm *header;
+ notification_comm.length = 0;
+
header_offset = payload->buffer.size;
ret = lttng_dynamic_buffer_append(&payload->buffer, ¬ification_comm,
sizeof(notification_comm));