diff options
author | Kjell Ahlstedt <kjellahlstedt@gmail.com> | 2017-09-12 11:02:06 +0200 |
---|---|---|
committer | Kjell Ahlstedt <kjellahlstedt@gmail.com> | 2017-09-12 11:02:06 +0200 |
commit | de304e3377754823dc2f1b43f7b59df91fe48fee (patch) | |
tree | 3adba063abab35735be9c7f67b8d85810dee04d6 | |
parent | 746ae9535d85147bddc3e36468222dad10024089 (diff) | |
download | glibmm-de304e3377754823dc2f1b43f7b59df91fe48fee.tar.gz |
gmmproc: Warn for unmatched deprecations in signals and properties
Warn if a signal or a property is deprecated in the _WRAP_* macro,
but not in the .defs file. (Warnings if a signal or a property is
deprecated in the .defs file, but not in the _WRAP_* macro have been
added previously.)
-rw-r--r-- | tools/pm/Output.pm | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/tools/pm/Output.pm b/tools/pm/Output.pm index f1d717e3..65d37cac 100644 --- a/tools/pm/Output.pm +++ b/tools/pm/Output.pm @@ -99,15 +99,11 @@ sub check_deprecation($$$$$$) print STDERR "Warning, $main::source: The $entity_name $entity_type" . " is deprecated in the .defs file, but not in _WRAP_$wrapper.\n"; } - # Uncomment the following lines some time in the future, when most - # signal.defs files have been updated with deprecation information. - # generate_extra_defs.cc was updated to generate this info soon after - # glibmm 2.47.6. - #elsif (!$defs_deprecated && $wrap_deprecated) - #{ - # print STDERR "Warning, $main::source: The $entity_name $entity_type" . - # " is deprecated in _WRAP_$wrapper, but not in the .defs file.\n"; - #} + elsif (!$defs_deprecated && $wrap_deprecated) + { + print STDERR "Warning, $main::source: The $entity_name $entity_type" . + " is deprecated in _WRAP_$wrapper, but not in the .defs file.\n"; + } } sub ifdef($$) |