[glibmm] gmmproc: Warn for unmatched deprecations in signals and properties
- From: Kjell Ahlstedt <kjellahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm] gmmproc: Warn for unmatched deprecations in signals and properties
- Date: Thu, 7 Sep 2017 05:50:22 +0000 (UTC)
commit 5d5f36036ee3bf0826aa2f500ed4befd84c1bc25
Author: Kjell Ahlstedt <kjellahlstedt gmail com>
Date: Thu Sep 7 07:43:38 2017 +0200
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 has been
added previously.)
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 fa27743..6e63bb7 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($$)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]