]> 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:26:36 +0000 (00:26 +0100)
committerFrédéric Buclin <LpSolit@gmail.com>
Sat, 5 Jan 2013 23:26:36 +0000 (00:26 +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 1e7fc97c69888fcd9a72715e331dc51a6ab2cc3c..39cacedb0bf7f11feee2e858c9390007334989ce 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 7e42cb609f0d8904e078cfccc1cc55363b1921f1..1c4fb618832c46391780e38d4fd94bc4f4952963 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 {