mirror of
git://sourceware.org/git/libabigail.git
synced 2025-03-05 06:07:49 +00:00
ctf-reader: Use ABG_ASSERT instead of assert
* tools/abidiff.cc (main): Use ABG_ASSERT instead of assert. * tools/abilint.cc: Likewise. Signed-off-by: Guillermo E. Martinez <guillermo.e.martinez@oracle.com>
This commit is contained in:
parent
7f60fbc96b
commit
b5a914c208
@ -1172,8 +1172,7 @@ main(int argc, char* argv[])
|
||||
abigail::ctf_reader::read_context_sptr ctxt
|
||||
= abigail::ctf_reader::create_read_context(opts.file1,
|
||||
env.get());
|
||||
|
||||
assert (ctxt);
|
||||
ABG_ASSERT(ctxt);
|
||||
c1 = abigail::ctf_reader::read_corpus(ctxt.get(),
|
||||
c1_status);
|
||||
}
|
||||
@ -1256,10 +1255,9 @@ main(int argc, char* argv[])
|
||||
abigail::ctf_reader::read_context_sptr ctxt
|
||||
= abigail::ctf_reader::create_read_context(opts.file2,
|
||||
env.get());
|
||||
|
||||
assert (ctxt);
|
||||
c2 = abigail::ctf_reader::read_corpus (ctxt.get(),
|
||||
c2_status);
|
||||
ABG_ASSERT(ctxt);
|
||||
c2 = abigail::ctf_reader::read_corpus(ctxt.get(),
|
||||
c2_status);
|
||||
}
|
||||
else
|
||||
#endif
|
||||
|
@ -373,9 +373,8 @@ main(int argc, char* argv[])
|
||||
abigail::ctf_reader::read_context_sptr ctxt
|
||||
= abigail::ctf_reader::create_read_context(opts.file_path,
|
||||
env.get());
|
||||
|
||||
assert (ctxt);
|
||||
corp = abigail::ctf_reader::read_corpus (ctxt.get(), s);
|
||||
ABG_ASSERT(ctxt);
|
||||
corp = abigail::ctf_reader::read_corpus(ctxt.get(), s);
|
||||
}
|
||||
else
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user