X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Flib%2Fgraph%2Fmip.c;h=27da722f28db6ef2d7aab7a547004411363d745d;hb=43c59509042845f8d42c3e99ec74d45fa2dc0908;hp=46347652cdb93ada1b12556aadd463f470d47aec;hpb=498e7994d60bd0e9f63c3d5c0fd00eec77ba7c34;p=babeltrace.git diff --git a/src/lib/graph/mip.c b/src/lib/graph/mip.c index 46347652..27da722f 100644 --- a/src/lib/graph/mip.c +++ b/src/lib/graph/mip.c @@ -28,7 +28,7 @@ #include #include #include -#include +#include #include "common/assert.h" #include "compat/compiler.h" @@ -146,6 +146,7 @@ int validate_operative_mip_version_in_array(GPtrArray *descriptors, range_set->ranges->len > 0, "User method returned `BT_FUNC_STATUS_OK` without " "adding a range to the supported MIP version range set."); + BT_ASSERT_POST_NO_ERROR_IF_NO_ERROR_STATUS(method_status); if (method_status < 0) { BT_LIB_LOGW_APPEND_CAUSE( "Component class's \"get supported MIP versions\" method failed: " @@ -194,6 +195,7 @@ bt_get_greatest_operative_mip_version( { int status = BT_FUNC_STATUS_OK; + BT_ASSERT_PRE_NO_ERROR(); BT_ASSERT_PRE_NON_NULL(comp_descr_set, "Component descriptor set"); BT_ASSERT_PRE_NON_NULL(operative_mip_version, "Operative MIP version (output)");