From d758a8169eacbccc0a65d6fd68e49f8eb8b713be Mon Sep 17 00:00:00 2001 From: Frédéric Buclin Date: Sun, 6 Jan 2013 00:26:36 +0100 Subject: Bug 826678: Disable warnings about the deprecated Return::Value module when loading Email::Send r=wicked a=LpSolit --- Bugzilla/Mailer.pm | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Bugzilla/Mailer.pm') diff --git a/Bugzilla/Mailer.pm b/Bugzilla/Mailer.pm index 7e42cb609..1c4fb6188 100644 --- a/Bugzilla/Mailer.pm +++ b/Bugzilla/Mailer.pm @@ -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 { -- cgit v1.2.3-24-g4f1b