Fix: allow structure types to have a minimum align
[babeltrace.git] / formats / ctf / ir / event-types.c
index da0ecd6d89acf91c150a8dc4a3ee24133ef1aae9..5079d6982d97dc72e476853fad18f8716e0576e2 100644 (file)
@@ -1810,8 +1810,8 @@ int bt_ctf_field_type_set_alignment(struct bt_ctf_field_type *type,
                goto end;
        }
 
-       if (type_id == CTF_TYPE_STRUCT || type_id == CTF_TYPE_VARIANT ||
-               type_id == CTF_TYPE_SEQUENCE || type_id == CTF_TYPE_ARRAY) {
+       if (type_id == CTF_TYPE_VARIANT || type_id == CTF_TYPE_SEQUENCE ||
+               type_id == CTF_TYPE_ARRAY) {
                /* Setting an alignment on these types makes no sense */
                ret = -1;
                goto end;
This page took 0.022834 seconds and 4 git commands to generate.