Replace all assert(false) and assert(0) with abort()
[babeltrace.git] / lib / ctf-ir / event-class.c
index 4381d051db7eb2557d6f9baac36b21c3ccf1e2a6..3fc60603103bdda8f4d63e7aaf732b8c294fdbb0 100644 (file)
@@ -45,6 +45,7 @@
 #include <babeltrace/types.h>
 #include <babeltrace/values-internal.h>
 #include <inttypes.h>
+#include <stdlib.h>
 
 static
 void bt_ctf_event_class_destroy(struct bt_object *obj);
@@ -876,7 +877,7 @@ int bt_ctf_event_class_serialize(struct bt_ctf_event_class *event_class,
 
                default:
                        /* should never happen */
-                       assert(BT_FALSE);
+                       abort();
                        break;
                }
 
This page took 0.026988 seconds and 4 git commands to generate.