Fix: allow structure types to have a minimum align
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Tue, 14 Jul 2015 23:42:23 +0000 (19:42 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 16 Jul 2015 22:13:38 +0000 (18:13 -0400)
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
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.026454 seconds and 4 git commands to generate.