]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gtkcommentparser: Fix --verbose
authorFlorian Brosch <flo.brosch@gmail.com>
Thu, 9 Aug 2012 02:18:55 +0000 (04:18 +0200)
committerFlorian Brosch <flo.brosch@gmail.com>
Thu, 9 Aug 2012 02:18:55 +0000 (04:18 +0200)
src/libvaladoc/documentation/gtkdoccommentparser.vala

index eb154ad2f1e6166ea45be78781abf1f5548503bb..f725ef7c3bc0eaf8bdaabc83caefb894af517330 100644 (file)
@@ -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 ;
                }