summaryrefslogtreecommitdiff
path: root/vala/valaconstructor.vala
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2009-09-13 21:51:55 +0200
committerJürg Billeter <j@bitron.ch>2009-09-13 21:51:55 +0200
commitbc2fc38707aa18320dfed53d22155a50b7b7891b (patch)
treedfc184a4661de7e3e229fe6a3ec3dc8ebb7c1be0 /vala/valaconstructor.vala
parent018df5424d4508ebbba0c28cf06fecb0d5482240 (diff)
downloadvala-bc2fc38707aa18320dfed53d22155a50b7b7891b.tar.gz
Also drop dynamic error warning from constructors
Diffstat (limited to 'vala/valaconstructor.vala')
-rw-r--r--vala/valaconstructor.vala6
1 files changed, 4 insertions, 2 deletions
diff --git a/vala/valaconstructor.vala b/vala/valaconstructor.vala
index a09027a75..f61f39831 100644
--- a/vala/valaconstructor.vala
+++ b/vala/valaconstructor.vala
@@ -1,6 +1,6 @@
/* valaconstructor.vala
*
- * Copyright (C) 2006-2008 Jürg Billeter
+ * Copyright (C) 2006-2009 Jürg Billeter
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -79,7 +79,9 @@ public class Vala.Constructor : Symbol {
}
foreach (DataType body_error_type in body.get_error_types ()) {
- Report.warning (body_error_type.source_reference, "unhandled error `%s'".printf (body_error_type.to_string()));
+ if (!((ErrorType) body_error_type).dynamic_error) {
+ Report.warning (body_error_type.source_reference, "unhandled error `%s'".printf (body_error_type.to_string()));
+ }
}
analyzer.current_symbol = analyzer.current_symbol.parent_symbol;