Build fix: consumer: aggregate initialization isn't supported
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 9 Mar 2022 12:56:47 +0000 (07:56 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 9 Mar 2022 13:20:07 +0000 (08:20 -0500)
Aggregate initialization is not supported in C. Change the syntax to use
a compound literal.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I630ca41b13ea730e699e53ae9a23bdd78acbed57

src/common/consumer/consumer-stream.c

index 1edd908044c453ff5d436ad7da819b1b843ff5f6..a6490abe74352422df4e01190c2390ce91887add 100644 (file)
@@ -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;
This page took 0.025887 seconds and 4 git commands to generate.