Replace all assert(false) and assert(0) with abort()
[babeltrace.git] / lib / plugin / plugin-so.c
index 4c390b76e53f8d15067876d8c41d6274732d9707..f1fa9f71b2a37a298f773ad234c9d5eae372ad70 100644 (file)
@@ -36,6 +36,7 @@
 #include <babeltrace/graph/component-class-internal.h>
 #include <babeltrace/types.h>
 #include <string.h>
+#include <stdlib.h>
 #include <glib.h>
 #include <gmodule.h>
 
@@ -635,8 +636,7 @@ enum bt_plugin_status bt_plugin_so_init(
                case BT_COMPONENT_CLASS_TYPE_SINK:
                        break;
                default:
-                       assert(BT_FALSE);
-                       break;
+                       abort();
                }
 
                /*
This page took 0.022706 seconds and 4 git commands to generate.