X-Git-Url: https://git.efficios.com/?a=blobdiff_plain;f=plugins%2Fctf%2Fcommon%2Fnotif-iter%2Fnotif-iter.c;h=b2aa08e44333eaf9dc2be5d77d889ed38d310a8c;hb=0fbb9a9fffe22e0d5211a47118102fa0ba4a766a;hp=acb349380c3fa626328b9805300bb38d2f97a4d0;hpb=5af447e5102d6226ee198e4db52b51e12075f1bb;p=babeltrace.git diff --git a/plugins/ctf/common/notif-iter/notif-iter.c b/plugins/ctf/common/notif-iter/notif-iter.c index acb34938..b2aa08e4 100644 --- a/plugins/ctf/common/notif-iter/notif-iter.c +++ b/plugins/ctf/common/notif-iter/notif-iter.c @@ -44,6 +44,7 @@ #include #include #include +#include #define PRINT_ERR_STREAM notit->err_stream #define PRINT_PREFIX "ctf-notif-iter" @@ -1397,8 +1398,7 @@ struct bt_ctf_field *get_next_field(struct bt_ctf_notif_iter *notit) next_field = bt_ctf_field_variant_get_current_field(base_field); break; default: - assert(false); - break; + abort(); } end: @@ -1541,9 +1541,7 @@ enum bt_ctf_btr_status btr_unsigned_int_common(uint64_t value, type = bt_ctf_field_get_type(int_field); break; default: - assert(0); - type = NULL; - break; + abort(); } if (!int_field) { @@ -1636,9 +1634,7 @@ enum bt_ctf_btr_status btr_signed_int_cb(int64_t value, type = bt_ctf_field_get_type(int_field); break; default: - assert(0); - type = NULL; - break; + abort(); } if (!int_field) { @@ -2500,7 +2496,7 @@ enum bt_ctf_notif_iter_status bt_ctf_notif_iter_get_packet_header_context_fields * We should never get past the * STATE_EMIT_NOTIF_NEW_PACKET state. */ - assert(false); + abort(); } }