]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
debugging for empty struct warning
authorRob Taylor <rob.taylor@codethink.co.uk>
Tue, 9 Jun 2009 10:50:23 +0000 (11:50 +0100)
committerRob Taylor <rob.taylor@codethink.co.uk>
Wed, 22 Jul 2009 15:43:37 +0000 (16:43 +0100)
vala/valastruct.vala

index 02d4c5c2b9a2ab486197a4470f96a4bde38ab77e..c2d61bfb520025862dfa43488f208d48c6f0938d 100644 (file)
@@ -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;