mirror of
git://sourceware.org/git/libabigail.git
synced 2025-03-06 22:58:01 +00:00
Do not report change in typedef underlying type is there is none
* src/abg-comparison.cc (typedef_diff::report): Do not forget to check the length of the diff of the underlying type before sending its diff report down the wire. Signed-off-by: Dodji Seketeli <dodji@redhat.com>
This commit is contained in:
parent
fe526e7430
commit
86d319dc08
@ -4036,14 +4036,15 @@ typedef_diff::report(ostream& out, const string& indent) const
|
|||||||
emit_nl = true;
|
emit_nl = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (diff_sptr d = underlying_type_diff())
|
diff_sptr d = underlying_type_diff();
|
||||||
|
if (d && d->length())
|
||||||
{
|
{
|
||||||
if (diff_sptr d2 = context()->has_diff_for(d))
|
if (diff_sptr d2 = context()->has_diff_for(d))
|
||||||
{
|
{
|
||||||
if (d2->currently_reporting())
|
if (d2->currently_reporting())
|
||||||
out << indent << "underlying type '"
|
out << indent << "underlying type '"
|
||||||
<< d->first_subject()->get_pretty_representation()
|
<< d->first_subject()->get_pretty_representation()
|
||||||
<< "' changed; details are being reported\n";
|
<< "' changed; details are being reported\n";
|
||||||
else if (d2->reported_once())
|
else if (d2->reported_once())
|
||||||
out << indent << "underlying type '"
|
out << indent << "underlying type '"
|
||||||
<< d->first_subject()->get_pretty_representation()
|
<< d->first_subject()->get_pretty_representation()
|
||||||
|
Loading…
Reference in New Issue
Block a user