From: Philippe Proulx Date: Tue, 14 Jul 2015 23:42:23 +0000 (-0400) Subject: Fix: allow structure types to have a minimum align X-Git-Tag: v2.0.0-pre1~1210 X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=40e99cb3fc31b1aa956fcade62a411f3c4e96cd9 Fix: allow structure types to have a minimum align Signed-off-by: Philippe Proulx Signed-off-by: Jérémie Galarneau --- diff --git a/formats/ctf/ir/event-types.c b/formats/ctf/ir/event-types.c index da0ecd6d..5079d698 100644 --- a/formats/ctf/ir/event-types.c +++ b/formats/ctf/ir/event-types.c @@ -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;