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=c58be5fff5569f2959c79651e02af0a5f641ccb3;p=lttng-tools.git Build fix: missing initializer for member 'payload' 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 --- 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));