X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=formats%2Fctf%2Fwriter%2Fevent-types.c;h=091b3209eff8261d4526de6042ce08f8b933086e;hp=9b74b6e169954c23d244e1f2fe67fb53e4138588;hb=c4e511dfb2a168ee45764b6f6e6190c400b76b4b;hpb=e32ff7035ef1efc0c61c3cb7ec2c4b7ca32f48c4 diff --git a/formats/ctf/writer/event-types.c b/formats/ctf/writer/event-types.c index 9b74b6e1..091b3209 100644 --- a/formats/ctf/writer/event-types.c +++ b/formats/ctf/writer/event-types.c @@ -190,6 +190,7 @@ static void bt_ctf_field_type_init(struct bt_ctf_field_type *type) { enum ctf_type_id type_id = type->declaration->id; + int ret; assert(type && (type_id > CTF_TYPE_UNKNOWN) && (type_id < NR_CTF_TYPES)); @@ -197,7 +198,8 @@ void bt_ctf_field_type_init(struct bt_ctf_field_type *type) bt_ctf_ref_init(&type->ref_count); type->freeze = type_freeze_funcs[type_id]; type->serialize = type_serialize_funcs[type_id]; - bt_ctf_field_type_set_byte_order(type, BT_CTF_BYTE_ORDER_NATIVE); + ret = bt_ctf_field_type_set_byte_order(type, BT_CTF_BYTE_ORDER_NATIVE); + assert(!ret); type->declaration->alignment = 1; }