From c58be5fff5569f2959c79651e02af0a5f641ccb3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Thu, 16 Jun 2022 17:36:41 -0400 Subject: [PATCH] Build fix: missing initializer for member 'payload' MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit gcc 5.4.0 complains that: event.cpp:769:3: warning: missing initializer for member 'lttng_event_exclusion_comm::payload' [-Wmissing-field-initializers] The structure's members are initialized one by one. Signed-off-by: Jérémie Galarneau Change-Id: Iac3eedff2d79843c910b4da5edec4d7f10fa062a --- src/common/event.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/common/event.cpp b/src/common/event.cpp index e17a560cf..37c346621 100644 --- a/src/common/event.cpp +++ b/src/common/event.cpp @@ -113,7 +113,9 @@ static int lttng_event_function_attr_serialize( { int ret; size_t symbol_name_len; - struct lttng_event_function_attr_comm comm = { 0 }; + struct lttng_event_function_attr_comm comm; + + comm.symbol_name_len = 0; symbol_name_len = lttng_strnlen( function->symbol_name, sizeof(function->symbol_name)); -- 2.34.1