X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=formats%2Fctf%2Fctf.c;fp=formats%2Fctf%2Fctf.c;h=597e8d25f9e97baf2852d468a2422d3ae7aa377a;hp=9b5302199e17391e0ec73b90d078f44bf0680e27;hb=7e3e3582f6fc79c97b07fad7fa7019e8a80aeb0e;hpb=50b02c873391f0f600efc63cb926e337cc554bee diff --git a/formats/ctf/ctf.c b/formats/ctf/ctf.c index 9b530219..597e8d25 100644 --- a/formats/ctf/ctf.c +++ b/formats/ctf/ctf.c @@ -159,6 +159,14 @@ struct bt_format ctf_format = { .convert_index_timestamp = ctf_convert_index_timestamp, }; +void bt_ctf_hook(void) +{ + /* + * Dummy function to prevent the linker from discarding this format as + * "unused" in static builds. + */ +} + static int ctf_timestamp_begin(struct bt_trace_descriptor *descriptor, struct bt_trace_handle *handle, enum bt_clock_type type,