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:
Dodji Seketeli 2014-03-13 13:59:33 +01:00
parent fe526e7430
commit 86d319dc08

View File

@ -4036,14 +4036,15 @@ typedef_diff::report(ostream& out, const string& indent) const
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 (d2->currently_reporting())
out << indent << "underlying type '"
<< d->first_subject()->get_pretty_representation()
<< "' changed; details are being reported\n";
out << indent << "underlying type '"
<< d->first_subject()->get_pretty_representation()
<< "' changed; details are being reported\n";
else if (d2->reported_once())
out << indent << "underlying type '"
<< d->first_subject()->get_pretty_representation()