[libdbd-pg-perl] 02/35: Disable silly redundant warning for our perfectly valid sprinf hack

Christoph Berg myon at debian.org
Wed Sep 27 17:41:02 UTC 2017


This is an automated email from the git hooks/post-receive script.

myon pushed a commit to branch master
in repository libdbd-pg-perl.

commit 799cb1e92cf938c5887726f41bea99634000dc8b
Author: Greg Sabino Mullane <greg at endpoint.com>
Date:   Sat Sep 9 13:54:01 2017 -0400

    Disable silly redundant warning for our perfectly valid sprinf hack
---
 Pg.pm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Pg.pm b/Pg.pm
index 81094cf..eeb76a6 100644
--- a/Pg.pm
+++ b/Pg.pm
@@ -1541,6 +1541,7 @@ use 5.008001;
         elsif ($ans eq 'DBDVERSION') {
             my $simpleversion = $DBD::Pg::VERSION;
             $simpleversion =~ s/_/./g;
+            no warnings 'redundant';
             return sprintf '%02d.%02d.%1d%1d%1d%1d', split (/\./, "$simpleversion.0.0.0.0.0.0");
         }
          elsif ($ans eq 'KEYWORDS') {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libdbd-pg-perl.git



More information about the Pkg-perl-cvs-commits mailing list