From: Jérémie Galarneau Date: Wed, 9 Mar 2022 12:56:47 +0000 (-0500) Subject: Build fix: consumer: aggregate initialization isn't supported X-Git-Tag: v2.13.5~13 X-Git-Url: https://git.liburcu.org/?p=lttng-tools.git;a=commitdiff_plain;h=2577e3adfd9c350dd3c809b09977a2f144277660 Build fix: consumer: aggregate initialization isn't supported 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 --- 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;