[gobject-introspection/issue-188] giscanner: don't print "suppressed N warnings" if --quiet was specified



commit 2d36e7e4ce00f5793c6347651ab709a698781964
Author: Tim-Philipp Müller <tim centricular com>
Date:   Tue Nov 28 18:44:50 2017 +0000

    giscanner: don't print "suppressed N warnings" if --quiet was specified

 giscanner/scannermain.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/giscanner/scannermain.py b/giscanner/scannermain.py
index 095a43fb..ffcb95cd 100755
--- a/giscanner/scannermain.py
+++ b/giscanner/scannermain.py
@@ -562,7 +562,7 @@ def scanner_main(args):
     if options.warn_fatal and warning_count > 0:
         message.fatal("warnings configured as fatal")
         return 1
-    elif warning_count > 0 and options.warn_all is False:
+    elif warning_count > 0 and options.warn_all is False and options.quiet is False:
         print("g-ir-scanner: %s: warning: %d warnings suppressed "
               "(use --warn-all to see them)" %
               (transformer.namespace.name, warning_count, ))


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]