From: Jérémie Galarneau Date: Thu, 16 Jun 2022 21:36:41 +0000 (-0400) Subject: Build fix: missing initializer for member 'payload' X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=fa9870ceddc6f5ddd4bbf8cda2a87365b78fdf0e;p=lttng-tools.git Build fix: missing initializer for member 'payload' gcc 5.4.0 complains that: event.cpp:1238:53: warning: missing initializer for member 'lttng_event_context_comm::payload' [-Wmissing-field-initializers] The structure's members are initialized one by one. Signed-off-by: Jérémie Galarneau Change-Id: Id7c01cd19cbf884efd16734239cae8476b798c20 --- diff --git a/src/common/event.cpp b/src/common/event.cpp index 4207b7347..f33518eee 100644 --- a/src/common/event.cpp +++ b/src/common/event.cpp @@ -1237,7 +1237,9 @@ int lttng_event_context_serialize(struct lttng_event_context *context, struct lttng_payload *payload) { int ret; - struct lttng_event_context_comm context_comm = { 0 }; + struct lttng_event_context_comm context_comm; + + context_comm.type = 0; assert(context); assert(payload);