diff options
-rw-r--r-- | compiler/valacompiler.vala | 2 | ||||
-rw-r--r-- | vala/valacodecontext.vala | 6 | ||||
-rw-r--r-- | vala/valausedattr.vala | 3 |
3 files changed, 8 insertions, 3 deletions
diff --git a/compiler/valacompiler.vala b/compiler/valacompiler.vala index ebae467aa..968689830 100644 --- a/compiler/valacompiler.vala +++ b/compiler/valacompiler.vala @@ -461,8 +461,6 @@ class Vala.Compiler { context.write_dependencies (dependencies); } - context.used_attr.check_unused (context); - if (context.report.get_errors () > 0 || (fatal_warnings && context.report.get_warnings () > 0)) { return quit (); } diff --git a/vala/valacodecontext.vala b/vala/valacodecontext.vala index 55add5041..ddb9fdfb1 100644 --- a/vala/valacodecontext.vala +++ b/vala/valacodecontext.vala @@ -488,6 +488,12 @@ public class Vala.CodeContext { } flow_analyzer.analyze (this); + + if (report.get_errors () > 0) { + return; + } + + used_attr.check_unused (this); } public void add_define (string define) { diff --git a/vala/valausedattr.vala b/vala/valausedattr.vala index 04067e103..588aaf7f8 100644 --- a/vala/valausedattr.vala +++ b/vala/valausedattr.vala @@ -57,6 +57,7 @@ public class Vala.UsedAttr : CodeVisitor { "HasEmitter", "", "ReturnsModifiedPointer", "", "Deprecated", "since", "replacement", "", + "Version", "since", "replacement", "deprecated", "deprecated_since", "experimental", "", "Signal", "detailed", "run", "no_recurse", "action", "no_hooks", "", "Description", "nick", "blurb", "", @@ -72,7 +73,7 @@ public class Vala.UsedAttr : CodeVisitor { "GtkCallback", "name", "", "DBus", "name", "no_reply", "result", "use_string_marshalling", "value", "signature", "visible", "", - + "GIR", "name", "" }; |