[vala] debugging for empty struct warning
- From: Robert James Taylor <robtaylor src gnome org>
- To: svn-commits-list gnome org
- Subject: [vala] debugging for empty struct warning
- Date: Wed, 22 Jul 2009 15:52:53 +0000 (UTC)
commit 3fc26830824c27d0580b8d99dd7f9519ea444d23
Author: Rob Taylor <rob taylor codethink co uk>
Date: Tue Jun 9 11:50:23 2009 +0100
debugging for empty struct warning
vala/valastruct.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/vala/valastruct.vala b/vala/valastruct.vala
index 02d4c5c..c2d61bf 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]