X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=lib%2Fctf-ir%2Fresolve.c;h=139ed792c78da60cd47a70857b041522a2f24be2;hb=0fbb9a9fffe22e0d5211a47118102fa0ba4a766a;hp=6b4b889a7da322a2aed3552c955f64b0b227c0c1;hpb=5af447e5102d6226ee198e4db52b51e12075f1bb;p=babeltrace.git diff --git a/lib/ctf-ir/resolve.c b/lib/ctf-ir/resolve.c index 6b4b889a..139ed792 100644 --- a/lib/ctf-ir/resolve.c +++ b/lib/ctf-ir/resolve.c @@ -44,6 +44,7 @@ #include #include #include +#include #include typedef GPtrArray type_stack; @@ -979,7 +980,7 @@ int validate_target_field_path(struct bt_ctf_field_path *target_field_path, goto end; } } else { - assert(BT_FALSE); + abort(); } end: @@ -1016,9 +1017,7 @@ int resolve_sequence_or_variant_type(struct bt_ctf_field_type *type, bt_ctf_field_type_variant_get_tag_name(type); break; default: - assert(BT_FALSE); - ret = -1; - goto end; + abort(); } /* Get target field path out of path string */ @@ -1084,7 +1083,7 @@ int resolve_sequence_or_variant_type(struct bt_ctf_field_type *type, goto end; } } else { - assert(BT_FALSE); + abort(); } end: