From: Jonathan Matthew Date: Tue, 26 Oct 2010 23:56:44 +0000 (+1000) Subject: scanner: don't show 'warnings suppressed' if --warn-all in use X-Git-Tag: GOBJECT_INTROSPECTION_0_10_0~48 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7ac5f0c8ded33e061cd00066a594774ef9b453c7;p=platform%2Fupstream%2Fgobject-introspection.git scanner: don't show 'warnings suppressed' if --warn-all in use https://bugzilla.gnome.org/show_bug.cgi?id=633227 --- 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, ))