projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Replace all assert(false) and assert(0) with abort()
[babeltrace.git]
/
lib
/
ctf-ir
/
resolve.c
diff --git
a/lib/ctf-ir/resolve.c
b/lib/ctf-ir/resolve.c
index 6b4b889a7da322a2aed3552c955f64b0b227c0c1..139ed792c78da60cd47a70857b041522a2f24be2 100644
(file)
--- a/
lib/ctf-ir/resolve.c
+++ b/
lib/ctf-ir/resolve.c
@@
-44,6
+44,7
@@
#include <babeltrace/types.h>
#include <limits.h>
#include <inttypes.h>
#include <babeltrace/types.h>
#include <limits.h>
#include <inttypes.h>
+#include <stdlib.h>
#include <glib.h>
typedef GPtrArray type_stack;
#include <glib.h>
typedef GPtrArray type_stack;
@@
-979,7
+980,7
@@
int validate_target_field_path(struct bt_ctf_field_path *target_field_path,
goto end;
}
} else {
goto end;
}
} else {
- a
ssert(BT_FALSE
);
+ a
bort(
);
}
end:
}
end:
@@
-1016,9
+1017,7
@@
int resolve_sequence_or_variant_type(struct bt_ctf_field_type *type,
bt_ctf_field_type_variant_get_tag_name(type);
break;
default:
bt_ctf_field_type_variant_get_tag_name(type);
break;
default:
- assert(BT_FALSE);
- ret = -1;
- goto end;
+ abort();
}
/* Get target field path out of path string */
}
/* Get target field path out of path string */
@@
-1084,7
+1083,7
@@
int resolve_sequence_or_variant_type(struct bt_ctf_field_type *type,
goto end;
}
} else {
goto end;
}
} else {
- a
ssert(BT_FALSE
);
+ a
bort(
);
}
end:
}
end:
This page took
0.023519 seconds
and
4
git commands to generate.