diff options
author | gregor herrmann <gregoa@debian.org> | 2023-07-08 15:15:28 +0200 |
---|---|---|
committer | gregor herrmann <gregoa@debian.org> | 2023-07-08 15:15:28 +0200 |
commit | c9dbdd3ee59bcb3361668cb7aff4fa38876ca386 (patch) | |
tree | e4646f4667c3b0cda03646012476bf3d5d59d9df | |
parent | 52ec6bc2c045486b022c88b7821e62bf80828511 (diff) |
Smartmatch warnings were moved from 'experimental::smartmatch' to 'deprecated::smartmatch'
Origin: vendor
Bug-Debian: https://bugs.debian.org/1040532
Last-Update: 2023-07-08
Forwarded: https://github.com/sqitchers/sqitch/pull/769
Bug: https://github.com/sqitchers/sqitch/pull/769
in perl 5.37.10.
Suppress the warnings again by also turning off the new category.
This is only a band-aid, as Smartmatch is going to be removed in 5.42,
but at least it will avoid test failures in the present.
Gbp-Pq: Name deprecated-smartmatch.patch
-rw-r--r-- | lib/App/Sqitch/ItemFormatter.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/App/Sqitch/ItemFormatter.pm b/lib/App/Sqitch/ItemFormatter.pm index 19d75d96..0934dc4b 100644 --- a/lib/App/Sqitch/ItemFormatter.pm +++ b/lib/App/Sqitch/ItemFormatter.pm @@ -51,6 +51,7 @@ has formatter => ( default => sub { my $self = shift; no if $] >= 5.017011, warnings => 'experimental::smartmatch'; + no if $] >= 5.037010, warnings => 'deprecated::smartmatch'; String::Formatter->new({ input_processor => 'require_single_input', string_replacer => 'method_replace', |