Always evaluate BT_ASSERT(); add BT_ASSERT_DBG() for debug mode only
[babeltrace.git] / src / lib / graph / component-filter.c
index df617c6866ffcd25f6d9858a6618a9d2e2fbbc86..010e8fe85f5b2007ada57d7a57ee1d646ec1b39a 100644 (file)
@@ -69,8 +69,8 @@ bt_component_filter_borrow_class_const(
 
        cls = component->parent.class;
 
-       BT_ASSERT(cls);
-       BT_ASSERT(cls->type == BT_COMPONENT_CLASS_TYPE_FILTER);
+       BT_ASSERT_DBG(cls);
+       BT_ASSERT_DBG(cls->type == BT_COMPONENT_CLASS_TYPE_FILTER);
 
        return (bt_component_class_filter *) cls;
 }
This page took 0.023261 seconds and 4 git commands to generate.