ctf-writer: fix linter defects
[babeltrace.git] / formats / ctf / writer / event-types.c
index 9b74b6e169954c23d244e1f2fe67fb53e4138588..091b3209eff8261d4526de6042ce08f8b933086e 100644 (file)
@@ -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;
 }
 
This page took 0.023434 seconds and 4 git commands to generate.