From 44af0246c480b9421f391dd71376298b43a99e2a Mon Sep 17 00:00:00 2001 From: Luca Bruno Date: Wed, 3 Dec 2014 12:39:23 +0100 Subject: Warn about unused attributes This may not be the best approach, but it's a start --- compiler/valacompiler.vala | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'compiler') diff --git a/compiler/valacompiler.vala b/compiler/valacompiler.vala index 3f881244d..fe0fdb9ae 100644 --- a/compiler/valacompiler.vala +++ b/compiler/valacompiler.vala @@ -457,6 +457,12 @@ 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 (); + } + if (!ccode_only) { var ccompiler = new CCodeCompiler (); if (cc_command == null && Environment.get_variable ("CC") != null) { -- cgit v1.2.1