]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 826678: Disable warnings about the deprecated Return::Value module when loading...
authorFrédéric Buclin <LpSolit@gmail.com>
Sat, 5 Jan 2013 23:27:35 +0000 (00:27 +0100)
committerFrédéric Buclin <LpSolit@gmail.com>
Sat, 5 Jan 2013 23:27:35 +0000 (00:27 +0100)
r=wicked a=LpSolit

Bugzilla/Config/MTA.pm
Bugzilla/Install/Requirements.pm
Bugzilla/Mailer.pm

index c90e5dc763724e3f19f3c5c4b7ce6787cf3555a0..aeded375f4433b99bb2fd0384e3718294f5365c0 100644 (file)
@@ -34,6 +34,12 @@ package Bugzilla::Config::MTA;
 use strict;
 
 use Bugzilla::Config::Common;
+# Return::Value 1.666002 pollutes the error log with warnings about this
+# deprecated module. We have to set NO_CLUCK = 1 before loading Email::Send
+# to disable these warnings.
+BEGIN {
+    $Return::Value::NO_CLUCK = 1;
+}
 use Email::Send;
 
 our $sortkey = 1200;
index 46790dd8f96756f3a8e335af4006d7f743817443..4daaa5256a8403eed4185ee47955a2ef28d85ad2 100644 (file)
@@ -32,6 +32,13 @@ use List::Util qw(max);
 use Safe;
 use Term::ANSIColor;
 
+# Return::Value 1.666002 pollutes the error log with warnings about this
+# deprecated module. We have to set NO_CLUCK = 1 before loading Email::Send
+# in have_vers() to disable these warnings.
+BEGIN {
+    $Return::Value::NO_CLUCK = 1;
+}
+
 use base qw(Exporter);
 our @EXPORT = qw(
     REQUIRED_MODULES
index 5ee6fd2eb854db79d682a55d569c2e1b050d22da..b79d952876d45c685367f4486c144b3c2a31707f 100644 (file)
@@ -48,6 +48,12 @@ use Encode qw(encode);
 use Encode::MIME::Header;
 use Email::Address;
 use Email::MIME;
+# Return::Value 1.666002 pollutes the error log with warnings about this
+# deprecated module. We have to set NO_CLUCK = 1 before loading Email::Send
+# to disable these warnings.
+BEGIN {
+    $Return::Value::NO_CLUCK = 1;
+}
 use Email::Send;
 
 sub MessageToMTA {