From 2577e3adfd9c350dd3c809b09977a2f144277660 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Wed, 9 Mar 2022 07:56:47 -0500 Subject: [PATCH] Build fix: consumer: aggregate initialization isn't supported MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Aggregate initialization is not supported in C. Change the syntax to use a compound literal. Signed-off-by: Jérémie Galarneau Change-Id: I630ca41b13ea730e699e53ae9a23bdd78acbed57 --- src/common/consumer/consumer-stream.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/consumer/consumer-stream.c b/src/common/consumer/consumer-stream.c index 1edd90804..a6490abe7 100644 --- a/src/common/consumer/consumer-stream.c +++ b/src/common/consumer/consumer-stream.c @@ -670,7 +670,8 @@ struct lttng_consumer_stream *consumer_stream_create( goto error; } - stream->send_node = CDS_LIST_HEAD_INIT(stream->send_node); + stream->send_node = (typeof(stream->send_node)) + CDS_LIST_HEAD_INIT(stream->send_node); stream->chan = channel; stream->key = stream_key; stream->trace_chunk = trace_chunk; -- 2.34.1