summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gmail.com>2018-02-08 12:54:22 +0000
committerEmmanuele Bassi <ebassi@gmail.com>2018-02-08 12:54:22 +0000
commit31ab9496cb882a21a1b64b1ef39f06514073dea5 (patch)
treeffa7af9dace4feaec179197f0228ad728b931dfc
parent080c60b6f931f6afd49c8429a857d59e0c1376f5 (diff)
parent2d36e7e4ce00f5793c6347651ab709a698781964 (diff)
downloadgobject-introspection-31ab9496cb882a21a1b64b1ef39f06514073dea5.tar.gz
Merge branch 'issue-188' into 'master'
Resolve "giscanner: don't print "suppressed N warnings" if --quiet was specified" Closes #188 See merge request GNOME/gobject-introspection!1
-rwxr-xr-xgiscanner/scannermain.py2
1 files changed, 1 insertions, 1 deletions
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, ))