From: Florian Brosch Date: Thu, 9 Aug 2012 02:18:55 +0000 (+0200) Subject: gtkcommentparser: Fix --verbose X-Git-Tag: 0.37.1~3^2~172 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8cfab911725cd434f63da2b138aa483cc5ac90f4;p=thirdparty%2Fvala.git gtkcommentparser: Fix --verbose --- diff --git a/src/libvaladoc/documentation/gtkdoccommentparser.vala b/src/libvaladoc/documentation/gtkdoccommentparser.vala index eb154ad2f..f725ef7c3 100644 --- a/src/libvaladoc/documentation/gtkdoccommentparser.vala +++ b/src/libvaladoc/documentation/gtkdoccommentparser.vala @@ -67,7 +67,7 @@ public class Valadoc.Gtkdoc.Parser : Object, ResourceLocator { private void reset (Api.SourceComment comment) { this.scanner.reset (comment.content); - this.show_warnings = !comment.file.package.is_package || settings.verbose; + this.show_warnings = !comment.file.package.is_package; this.comment_lines = null; this.footnotes.clear (); this.comment = comment; @@ -213,7 +213,7 @@ public class Valadoc.Gtkdoc.Parser : Object, ResourceLocator { } private void report_unexpected_token (Token got, string expected) { - if (this.show_warnings) { + if (!this.show_warnings) { return ; }