mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
gobject: Fix redundant warning message in glib-genmarshal
glib-genmarshal shows redundant "time" warning message against combination with --header and --body option. Before: WARNING: Using --header and --body at the same time time is deprecated; use --body --prototypes instead After: WARNING: Using --header and --body at the same time is deprecated; use --body --prototypes instead https://bugzilla.gnome.org/show_bug.cgi?id=795429 Signed-off-by: Kentaro Hayashi <hayashi@clear-code.com>
This commit is contained in:
parent
ad3b2f2387
commit
807648663d
@ -950,7 +950,7 @@ if __name__ == '__main__':
|
|||||||
# warning non-fatal even with --g-fatal-warnings, as it's a deprecation
|
# warning non-fatal even with --g-fatal-warnings, as it's a deprecation
|
||||||
compatibility_mode = False
|
compatibility_mode = False
|
||||||
if args.header and args.body:
|
if args.header and args.body:
|
||||||
print_warning('Using --header and --body at the same time time is deprecated; ' +
|
print_warning('Using --header and --body at the same time is deprecated; ' +
|
||||||
'use --body --prototypes instead', False)
|
'use --body --prototypes instead', False)
|
||||||
args.prototypes = True
|
args.prototypes = True
|
||||||
args.header = False
|
args.header = False
|
||||||
|
Loading…
Reference in New Issue
Block a user