From: Rob Taylor Date: Tue, 9 Jun 2009 10:50:23 +0000 (+0100) Subject: debugging for empty struct warning X-Git-Tag: 0.7.5~72 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3fc26830824c27d0580b8d99dd7f9519ea444d23;p=thirdparty%2Fvala.git debugging for empty struct warning --- diff --git a/vala/valastruct.vala b/vala/valastruct.vala index 02d4c5c2b..c2d61bfb5 100644 --- a/vala/valastruct.vala +++ b/vala/valastruct.vala @@ -760,7 +760,7 @@ public class Vala.Struct : TypeSymbol { if (!external && !external_package && base_type == null && get_fields ().size == 0 && !is_boolean_type () && !is_integer_type () && !is_floating_type ()) { error = true; - Report.error (source_reference, "structs cannot be empty"); + Report.error (source_reference, "structs cannot be empty: %s".printf(name)); } analyzer.current_source_file = old_source_file;