Replace all assert(false) and assert(0) with abort()
[babeltrace.git] / plugins / ctf / common / btr / btr.c
index 7e7cf37b956fb3d524a0863f26ea46d73c81c6a5..0f4c1be1e7d8fa1805b6051e42f28f571d43d607 100644 (file)
@@ -23,6 +23,7 @@
  * SOFTWARE.
  */
 
+#include <stdlib.h>
 #include <stdint.h>
 #include <stdio.h>
 #include <stddef.h>
@@ -999,7 +1000,7 @@ enum bt_ctf_btr_status read_basic_begin_state(struct bt_ctf_btr *btr)
                status = read_basic_string_type_and_call(btr, true);
                break;
        default:
-               assert(false);
+               abort();
        }
 
        return status;
@@ -1026,7 +1027,7 @@ enum bt_ctf_btr_status read_basic_continue_state(struct bt_ctf_btr *btr)
                status = read_basic_string_type_and_call(btr, false);
                break;
        default:
-               assert(false);
+               abort();
        }
 
        return status;
This page took 0.02498 seconds and 4 git commands to generate.