[gobject-introspection] scanner: don't show 'warnings suppressed' if --warn-all in use
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] scanner: don't show 'warnings suppressed' if --warn-all in use
- Date: Tue, 16 Nov 2010 00:41:53 +0000 (UTC)
commit 7ac5f0c8ded33e061cd00066a594774ef9b453c7
Author: Jonathan Matthew <jonathan d14n org>
Date: Wed Oct 27 09:56:44 2010 +1000
scanner: don't show 'warnings suppressed' if --warn-all in use
https://bugzilla.gnome.org/show_bug.cgi?id=633227
giscanner/scannermain.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/giscanner/scannermain.py b/giscanner/scannermain.py
index 79d85c5..33e719e 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, ))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]