summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Matthew <jonathan@d14n.org>2010-10-27 09:56:44 +1000
committerJonathan Matthew <jonathan@d14n.org>2010-11-16 10:40:54 +1000
commit7ac5f0c8ded33e061cd00066a594774ef9b453c7 (patch)
tree14257386564804436b55c6c883496917476da430
parentc8940a11562fd7b888595c6298e39836192fa3d7 (diff)
downloadgobject-introspection-7ac5f0c8ded33e061cd00066a594774ef9b453c7.tar.gz
scanner: don't show 'warnings suppressed' if --warn-all in use
https://bugzilla.gnome.org/show_bug.cgi?id=633227
-rw-r--r--giscanner/scannermain.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/giscanner/scannermain.py b/giscanner/scannermain.py
index 79d85c55..33e719ea 100644
--- a/giscanner/scannermain.py
+++ b/giscanner/scannermain.py
@@ -412,7 +412,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:
+ elif warning_count > 0 and options.warn_all is False:
print ("g-ir-scanner: %s: warning: %d warnings suppressed (use --warn-all to see them)"
% (transformer.namespace.name, warning_count, ))