]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 996893: Perl 5.18 and newer throw tons of warnings about deprecated modules
authorFrédéric Buclin <LpSolit@gmail.com>
Wed, 13 Aug 2014 10:43:11 +0000 (12:43 +0200)
committerFrédéric Buclin <LpSolit@gmail.com>
Wed, 13 Aug 2014 10:43:11 +0000 (12:43 +0200)
r=dkl a=sgreen

266 files changed:
Bugzilla.pm
Bugzilla/Attachment.pm
Bugzilla/Attachment/PatchReader.pm
Bugzilla/Auth.pm
Bugzilla/Auth/Login.pm
Bugzilla/Auth/Login/APIKey.pm
Bugzilla/Auth/Login/CGI.pm
Bugzilla/Auth/Login/Cookie.pm
Bugzilla/Auth/Login/Env.pm
Bugzilla/Auth/Login/Stack.pm
Bugzilla/Auth/Persist/Cookie.pm
Bugzilla/Auth/Verify.pm
Bugzilla/Auth/Verify/DB.pm
Bugzilla/Auth/Verify/LDAP.pm
Bugzilla/Auth/Verify/RADIUS.pm
Bugzilla/Auth/Verify/Stack.pm
Bugzilla/Bug.pm
Bugzilla/BugMail.pm
Bugzilla/BugUrl.pm
Bugzilla/BugUrl/Bugzilla.pm
Bugzilla/BugUrl/Bugzilla/Local.pm
Bugzilla/BugUrl/Debian.pm
Bugzilla/BugUrl/GitHub.pm
Bugzilla/BugUrl/Google.pm
Bugzilla/BugUrl/JIRA.pm
Bugzilla/BugUrl/Launchpad.pm
Bugzilla/BugUrl/MantisBT.pm
Bugzilla/BugUrl/SourceForge.pm
Bugzilla/BugUrl/Trac.pm
Bugzilla/BugUserLastVisit.pm
Bugzilla/CGI.pm
Bugzilla/Chart.pm
Bugzilla/Classification.pm
Bugzilla/Comment.pm
Bugzilla/Comment/TagWeights.pm
Bugzilla/Component.pm
Bugzilla/Config.pm
Bugzilla/Config/Admin.pm
Bugzilla/Config/Advanced.pm
Bugzilla/Config/Attachment.pm
Bugzilla/Config/Auth.pm
Bugzilla/Config/BugChange.pm
Bugzilla/Config/BugFields.pm
Bugzilla/Config/Common.pm
Bugzilla/Config/Core.pm
Bugzilla/Config/DependencyGraph.pm
Bugzilla/Config/General.pm
Bugzilla/Config/GroupSecurity.pm
Bugzilla/Config/LDAP.pm
Bugzilla/Config/MTA.pm
Bugzilla/Config/Memcached.pm
Bugzilla/Config/PatchViewer.pm
Bugzilla/Config/Query.pm
Bugzilla/Config/RADIUS.pm
Bugzilla/Config/ShadowDB.pm
Bugzilla/Config/UserMatch.pm
Bugzilla/Constants.pm
Bugzilla/DB.pm
Bugzilla/DB/Mysql.pm
Bugzilla/DB/Oracle.pm
Bugzilla/DB/Pg.pm
Bugzilla/DB/Schema.pm
Bugzilla/DB/Schema/Mysql.pm
Bugzilla/DB/Schema/Oracle.pm
Bugzilla/DB/Schema/Pg.pm
Bugzilla/DB/Schema/Sqlite.pm
Bugzilla/DB/Sqlite.pm
Bugzilla/Error.pm
Bugzilla/Extension.pm
Bugzilla/Field.pm
Bugzilla/Field/Choice.pm
Bugzilla/Field/ChoiceInterface.pm
Bugzilla/Flag.pm
Bugzilla/FlagType.pm
Bugzilla/Group.pm
Bugzilla/Hook.pm
Bugzilla/Install.pm
Bugzilla/Install/CPAN.pm
Bugzilla/Install/DB.pm
Bugzilla/Install/Filesystem.pm
Bugzilla/Install/Localconfig.pm
Bugzilla/Install/Requirements.pm
Bugzilla/Install/Util.pm
Bugzilla/Job/BugMail.pm
Bugzilla/Job/Mailer.pm
Bugzilla/JobQueue.pm
Bugzilla/JobQueue/Runner.pm
Bugzilla/Keyword.pm
Bugzilla/Mailer.pm
Bugzilla/Migrate.pm
Bugzilla/Migrate/Gnats.pm
Bugzilla/Milestone.pm
Bugzilla/Object.pm
Bugzilla/Product.pm
Bugzilla/RNG.pm
Bugzilla/Report.pm
Bugzilla/Search.pm
Bugzilla/Search/Clause.pm
Bugzilla/Search/ClauseGroup.pm
Bugzilla/Search/Condition.pm
Bugzilla/Search/Quicksearch.pm
Bugzilla/Search/Recent.pm
Bugzilla/Search/Saved.pm
Bugzilla/Send/Sendmail.pm
Bugzilla/Series.pm
Bugzilla/Status.pm
Bugzilla/Template.pm
Bugzilla/Template/Context.pm
Bugzilla/Template/Plugin/Bugzilla.pm
Bugzilla/Template/Plugin/Hook.pm
Bugzilla/Token.pm
Bugzilla/Update.pm
Bugzilla/User.pm
Bugzilla/User/APIKey.pm
Bugzilla/User/Setting.pm
Bugzilla/User/Setting/Lang.pm
Bugzilla/User/Setting/Skin.pm
Bugzilla/User/Setting/Timezone.pm
Bugzilla/UserAgent.pm
Bugzilla/Util.pm
Bugzilla/Version.pm
Bugzilla/WebService.pm
Bugzilla/WebService/Bug.pm
Bugzilla/WebService/BugUserLastVisit.pm
Bugzilla/WebService/Bugzilla.pm
Bugzilla/WebService/Classification.pm
Bugzilla/WebService/Component.pm
Bugzilla/WebService/Constants.pm
Bugzilla/WebService/FlagType.pm
Bugzilla/WebService/Group.pm
Bugzilla/WebService/Product.pm
Bugzilla/WebService/Server.pm
Bugzilla/WebService/Server/JSONRPC.pm
Bugzilla/WebService/Server/REST.pm
Bugzilla/WebService/Server/REST/Resources/Bug.pm
Bugzilla/WebService/Server/REST/Resources/Bugzilla.pm
Bugzilla/WebService/Server/REST/Resources/Classification.pm
Bugzilla/WebService/Server/REST/Resources/Component.pm
Bugzilla/WebService/Server/REST/Resources/FlagType.pm
Bugzilla/WebService/Server/REST/Resources/Group.pm
Bugzilla/WebService/Server/REST/Resources/Product.pm
Bugzilla/WebService/Server/REST/Resources/User.pm
Bugzilla/WebService/Server/XMLRPC.pm
Bugzilla/WebService/User.pm
Bugzilla/WebService/Util.pm
Bugzilla/Whine.pm
Bugzilla/Whine/Query.pm
Bugzilla/Whine/Schedule.pm
admin.cgi
attachment.cgi
buglist.cgi
chart.cgi
checksetup.pl
clean-bug-user-last-visit.pl
colchange.cgi
collectstats.pl
config.cgi
contrib/Bugzilla.pm
contrib/bz_webservice_demo.pl
contrib/bzdbcopy.pl
contrib/console.pl
contrib/convert-workflow.pl
contrib/extension-convert.pl
contrib/fixperms.pl
contrib/merge-users.pl
contrib/mysqld-watcher.pl
contrib/recode.pl
contrib/sendbugmail.pl
contrib/sendunsentbugmail.pl
contrib/syncLDAP.pl
createaccount.cgi
describecomponents.cgi
describekeywords.cgi
duplicates.cgi
editclassifications.cgi
editcomponents.cgi
editfields.cgi
editflagtypes.cgi
editgroups.cgi
editkeywords.cgi
editmilestones.cgi
editparams.cgi
editproducts.cgi
editsettings.cgi
editusers.cgi
editvalues.cgi
editversions.cgi
editwhines.cgi
editworkflow.cgi
email_in.pl
enter_bug.cgi
extensions/BmpConvert/Config.pm
extensions/BmpConvert/Extension.pm
extensions/Example/Config.pm
extensions/Example/Extension.pm
extensions/Example/lib/Auth/Login.pm
extensions/Example/lib/Auth/Verify.pm
extensions/MoreBugUrl/Config.pm
extensions/MoreBugUrl/Extension.pm
extensions/MoreBugUrl/lib/BitBucket.pm
extensions/MoreBugUrl/lib/GetSatisfaction.pm
extensions/MoreBugUrl/lib/PHP.pm
extensions/MoreBugUrl/lib/RT.pm
extensions/MoreBugUrl/lib/Redmine.pm
extensions/MoreBugUrl/lib/ReviewBoard.pm
extensions/MoreBugUrl/lib/Rietveld.pm
extensions/MoreBugUrl/lib/Savane.pm
extensions/OldBugMove/Config.pm
extensions/OldBugMove/Extension.pm
extensions/OldBugMove/lib/Params.pm
extensions/Voting/Config.pm
extensions/Voting/Extension.pm
extensions/create.pl
importxml.pl
index.cgi
install-module.pl
jobqueue.pl
jsonrpc.cgi
migrate.pl
mod_perl.pl
page.cgi
post_bug.cgi
process_bug.cgi
query.cgi
quips.cgi
relogin.cgi
report.cgi
reports.cgi
request.cgi
rest.cgi
runtests.pl
sanitycheck.cgi
sanitycheck.pl
search_plugin.cgi
show_activity.cgi
show_bug.cgi
showdependencygraph.cgi
showdependencytree.cgi
summarize_time.cgi
t/001compile.t
t/002goodperl.t
t/003safesys.t
t/004template.t
t/005whitespace.t
t/006spellcheck.t
t/007util.t
t/008filter.t
t/009bugwords.t
t/010dependencies.t
t/011pod.t
t/012throwables.t
t/013dbschema.t
t/Support/Files.pm
t/Support/Systemexec.pm
t/Support/Templates.pm
template/en/default/extensions/config.pm.tmpl
template/en/default/extensions/extension.pm.tmpl
template/en/default/extensions/util.pm.tmpl
testagent.cgi
testserver.pl
token.cgi
userprefs.cgi
votes.cgi
whine.pl
whineatnews.pl
xmlrpc.cgi

index 271bd894bcfc97812915fd5228d41baf11e0b91e..24ce65c2ef53bc371d594b97a36e10a3382d587a 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 # We want any compile errors to get to the browser, if possible.
 BEGIN {
index 19c10c8fea66c5228de158f864cecdf8cc3450cd..b44c94cd08d6d33596a6aa9872e8794e7e548658 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::Attachment;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 =head1 NAME
 
index c2ef53a65f2d0fc0b9bc7344ed407f89be655bee..aa4df72940cb85fa9cf5a0984116a891b962a64d 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::Attachment::PatchReader;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use Config;
 use IO::Select;
index 5d4c348dac2043c9d151b401d5ed522739724db1..96d4ee88379803499574e31c4afe78f3d1c63e82 100644 (file)
@@ -9,6 +9,8 @@ package Bugzilla::Auth;
 
 use 5.10.1;
 use strict;
+use warnings;
+
 use fields qw(
     _info_getter
     _verifier
index 33d63a425cddab64d07e3e5c6a01d00a5044a8a0..a5f089777198017cc0c05760e61f1617bc0f3454 100644 (file)
@@ -9,6 +9,8 @@ package Bugzilla::Auth::Login;
 
 use 5.10.1;
 use strict;
+use warnings;
+
 use fields qw();
 
 # Determines whether or not a user can logout. It's really a subroutine,
index 902ce4da767d02cd319e848223cb982d7268c5c7..63e35578af45e5c91eb439e1afb93a6631d27142 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::Auth::Login::APIKey;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use base qw(Bugzilla::Auth::Login);
 
index 76b82804a696138eb9d0d66850e7733a6a0899bd..6003d62a5bd7be65a6b76b322b77abc4cc4886dc 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::Auth::Login::CGI;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use parent qw(Bugzilla::Auth::Login);
 use constant user_can_create_account => 1;
index e3ba98183761a64c82c0354de49133bf7f64f08b..c09f08d24d1a968b4218f670f23ac899b5781193 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::Auth::Login::Cookie;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use base qw(Bugzilla::Auth::Login);
 use fields qw(_login_token);
index 51261e6b9b194bcc47f9e6c0b81cb886081141b5..c3d30ccbe185496fe70223e0d5ebee10e856741c 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::Auth::Login::Env;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use parent qw(Bugzilla::Auth::Login);
 
index ad5598576a89730ad888ff6e7b8a3237495176ae..dc35998e4f95d22644d0193c1fbe8ebfbe120fe0 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::Auth::Login::Stack;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use base qw(Bugzilla::Auth::Login);
 use fields qw(
index 6f4eac96d255071b3c42ab664e60b963b4c66b05..2d1291f3b90c32d9bde6906d978f6b21d7694ef3 100644 (file)
@@ -9,6 +9,8 @@ package Bugzilla::Auth::Persist::Cookie;
 
 use 5.10.1;
 use strict;
+use warnings;
+
 use fields qw();
 
 use Bugzilla::Constants;
index ecb64e22a749149699a4e9cc863e242a95933e0b..e44fb06aef9057214f0c6d5f105d901054c07e3a 100644 (file)
@@ -9,6 +9,8 @@ package Bugzilla::Auth::Verify;
 
 use 5.10.1;
 use strict;
+use warnings;
+
 use fields qw();
 
 use Bugzilla::Constants;
index d4a4674d3c4d9a902a3ed032f4945da9c740a773..ad7f15d240b6e26221ec31a32261a2d9d6580392 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::Auth::Verify::DB;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use parent qw(Bugzilla::Auth::Verify);
 
index c113124f1d472145dbd8bf141c131cb9a16f2a90..e37f557939b15d405a87c36f19ba2b1cdce4863f 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::Auth::Verify::LDAP;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use base qw(Bugzilla::Auth::Verify);
 use fields qw(
index e5157c68f4cd6b4a8a1d748a13538d3069e2ccef..283d9b4661482ee3e78641c05f4f686e27da9a13 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::Auth::Verify::RADIUS;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use parent qw(Bugzilla::Auth::Verify);
 
index 52c449e22f9d90df59434e94d248e39b3a95bea8..3e5db3cecbb442d086d23c9fc62892aa73619d9f 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::Auth::Verify::Stack;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use base qw(Bugzilla::Auth::Verify);
 use fields qw(
index b762a65003f0c681843888d55184982382662341..c4ddb943c94a3fa26243b9d0b8d7f0541a303789 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::Bug;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use Bugzilla::Attachment;
 use Bugzilla::Constants;
index d66df579dcad812258f0d1c0df5c1c751ac9a80f..8b4219787d533a8cf00cc3024134a1109b5b7b48 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::BugMail;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use Bugzilla::Error;
 use Bugzilla::User;
index 39b985d290d7aa4baed2809728e9bbe077df65ee..1e836ca1e8eabc2f2c0f059461069b286ec50a61 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::BugUrl;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use parent qw(Bugzilla::Object);
 
index db132eefff16b1718605d55dadbc1d92c6cf0855..402ff1509b40d4555b957452c540e78a48729d53 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::BugUrl::Bugzilla;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use parent qw(Bugzilla::BugUrl);
 
index 7381d56103096423dd0177f53d9460b5993d3b75..7b9cb6a4fa51dbebc73e3b69475ee06d49ca9c8f 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::BugUrl::Bugzilla::Local;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use parent qw(Bugzilla::BugUrl::Bugzilla);
 
index 97ad4b5456d35dcc6823ab96dcf4fc074aa0861a..2b611aa57bd38a83a1215d352a2d84c88565921b 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::BugUrl::Debian;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use parent qw(Bugzilla::BugUrl);
 
index 2c35bfb0827ee8a0b258f750ad7b7f07d86515b8..22814dc50e1d4aea57147794874bbf469d681f29 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::BugUrl::GitHub;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use parent qw(Bugzilla::BugUrl);
 
index dd9ab7ff4b0a887ef4b089a80b6ac5afb2a55c37..71a9c46fb52107a8b5583227c1f25ac140532ee3 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::BugUrl::Google;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use parent qw(Bugzilla::BugUrl);
 
index e358ff4394075a0fd5388738449eb81ca0439d97..e9d2a2d2a6c49e6613ea32fdecde9e37d21f428a 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::BugUrl::JIRA;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use parent qw(Bugzilla::BugUrl);
 
index 3409cbe19fbacaf35517026e0eee2980cab5ec9d..0362747a245c0062fb75e4447041758ba48f7293 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::BugUrl::Launchpad;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use parent qw(Bugzilla::BugUrl);
 
index 8dffabcbebcf912ce7ca126becfaee5426d66a0c..60d3b578ef87d615529a7528b827654add9b09bb 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::BugUrl::MantisBT;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use parent qw(Bugzilla::BugUrl);
 
index 630b97d7a7dcb5e0f2c6bd773bdc6b8af3ba1f6e..acba0df28b78f22078bb9ed4fa50233e7cf5e413 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::BugUrl::SourceForge;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use parent qw(Bugzilla::BugUrl);
 
index edb18e8fd2c80dc3704568073fcf89af10441b21..fe74abf33d36f46b3558730638a2696eb70cbe40 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::BugUrl::Trac;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use parent qw(Bugzilla::BugUrl);
 
index c4acfa56b252dbc2a84cc7af9e64d83da50c3057..9c7dcd452f6776fcb7cb735aa6648a4edfbb3d88 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::BugUserLastVisit;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use parent qw(Bugzilla::Object);
 
index 656c462b7124a5d79685e6382b02c7dc224decf6..79e3e053b46abb4a1b869180707cef02c98bd9dc 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::CGI;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use parent qw(CGI);
 
index 0329b9a0cf37dcd8c65465aab3e36132cbbada6e..c8cd41b52aa635c5f75c0be700a58a757a007295 100644 (file)
@@ -15,6 +15,7 @@ package Bugzilla::Chart;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use Bugzilla::Error;
 use Bugzilla::Util;
index 0ae548bb6879540dc6ccea4649b140ebf6801835..09f71baaf12b9178fdb8b202de52b4a603f5c42b 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::Classification;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use Bugzilla::Constants;
 use Bugzilla::Field;
index 238770d57207aa4f9e3d3bc8df91f0251fe5b2a1..c235b8d3085bd7e43bbf5a5498e426cd2518cb90 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::Comment;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use parent qw(Bugzilla::Object);
 
index f1a220a47f80dcb487cef7d5c977353cef979dc3..7dba53e34c0b720df939ddb2890a0ee10705577a 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::Comment::TagWeights;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use parent qw(Bugzilla::Object);
 
index 3d56cc8c265b46f13f059e3d3f37eae8a68853bd..9bc0a449314f9edd54228c3af7df77a04c9de62b 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::Component;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use parent qw(Bugzilla::Field::ChoiceInterface Bugzilla::Object);
 
index 5d9a8061c9198b54673adf37f657376ac9c6fca6..04c2c0c6f197093d4f5c49f7af6a1acb4867fae6 100644 (file)
@@ -9,8 +9,10 @@ package Bugzilla::Config;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use parent qw(Exporter);
+
 use Bugzilla::Constants;
 use Bugzilla::Hook;
 use Data::Dumper;
index 97f8ea390de91960f51ed1387d13da0b841e5387..41d929298523b367f1bd07ce88d8b1a7e435d0f6 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::Config::Admin;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use Bugzilla::Config::Common;
 
index eec2816d26d2244a1e8ca952419aab5022dd9451..8356c33610ec32b37e31a673ec3024d3a386eef1 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::Config::Advanced;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use Bugzilla::Config::Common;
 
index f31e57254abed16a3be57eb56f87226040f78d94..580ec46d98903033e637ea6d83dc1b44b79c802c 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::Config::Attachment;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use Bugzilla::Config::Common;
 
index 699881122eb7478c8c0afb51d1f4f11f42fe13f2..bf5db9d97c716eae2603ad057a7aa6b7102a8c2e 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::Config::Auth;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use Bugzilla::Config::Common;
 
index 53fc68d00c87b36dd81557abc8dee6732db4816a..0acdc0ce49cfdb2f8a04e23e279261e50278081a 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::Config::BugChange;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use Bugzilla::Config::Common;
 use Bugzilla::Status;
index 39c43cb923516948f56932ae816803ea367af31a..ef2faa64b64fbe53b55601405581aa58d0f80069 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::Config::BugFields;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use Bugzilla::Config::Common;
 use Bugzilla::Field;
index e9e993396c915f37e8f5e33eb97f6415f2103e8c..9f38436e896448a50f123ae1eb4c5b96b4c81542 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::Config::Common;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use Email::Address;
 use Socket;
index faf86c567360ca49eb348ecbe8d2bd4889a75e2f..654e569ba1b30583fa37c661b04de1b771e8b32f 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::Config::Core;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use Bugzilla::Config::Common;
 
index 51836405cd36cddb059c973259eb06d5425d57e1..a9b8598df84ca60263a994946252639c580ab1d8 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::Config::DependencyGraph;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use Bugzilla::Config::Common;
 
index a401e98edd63b8bd58253008cf6da9940a30e5db..5efaa6f6c2a9a6571e5279f6e6cf18cabb54a43f 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::Config::General;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use Bugzilla::Config::Common;
 
index 076f841fddb5353a3f940aecb5f32d2ddf6401dc..e827834a0b1e3df2859c3ecad419f910c9281a42 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::Config::GroupSecurity;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use Bugzilla::Config::Common;
 use Bugzilla::Group;
index 4a46f40d2cc35093f1c77c1b3021f912f6fb69ce..0bc8240dfde442dd9a18bba5f466616f64913035 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::Config::LDAP;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use Bugzilla::Config::Common;
 
index 2f4af72f4e697eb9bce73bb67dad94120dc991e5..ec74b20b3663eb212451f552154baca326b41f1f 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::Config::MTA;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use Bugzilla::Config::Common;
 # Return::Value 1.666002 pollutes the error log with warnings about this
index 08d8ce0e7c400f28f9a9b34cf48678c8addc4308..292803d86474046cb5a671c3f3bc954e1f2f11a6 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::Config::Memcached;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use Bugzilla::Config::Common;
 
index 2005e4c4a1c5603859b86acc389e723c3a3eb9a4..d090c1ee69229d169c0cefbace8e1fe6259c040a 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::Config::PatchViewer;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use Bugzilla::Config::Common;
 
index c7b33f620b1d67d6a2f5d7eca3dcb2b67d4e5078..f18bb90df190101e123b203373d7153ed6db805f 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::Config::Query;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use Bugzilla::Config::Common;
 
index 17fbdd7ddfd2765fcb16446179ed7bda072408b5..8e30b07a9881482fe5d4460e679055faa248333b 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::Config::RADIUS;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use Bugzilla::Config::Common;
 
index 65c572980ff457f578ea35cd0718e9a87834eaf1..5dbbb5202a172385088e33093c4d16e5942a67f5 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::Config::ShadowDB;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use Bugzilla::Config::Common;
 
index 53fb5136fbd509ab72610a19a13e2e104fd11853..3f74a7c44e6dda305ff50f30c9b9677bed5ad8ec 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::Config::UserMatch;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use Bugzilla::Config::Common;
 
index 2009fbcfbb2740de51690a74435e59dd61a582f9..59333795f6cd6cc9081b452bd9da0c03ddda7269 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::Constants;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use parent qw(Exporter);
 
index 00362901122b753c66c7f9b9a6d0cc27998dec92..29f431b12a33d49f757d8cd16912f913ecb59f88 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::DB;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use DBI;
 
index 28df1f0e85d0b15e3e7c37229e1836d32e4c1f20..f03c827b3404ed62beabf3f4ef580a1dc4ef7443 100644 (file)
@@ -23,6 +23,7 @@ package Bugzilla::DB::Mysql;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use parent qw(Bugzilla::DB);
 
index 23474fe15e5527c07db4fe2105e15bf4559977af..7424019ac7fd3e3bd574b865e1e0beb5da10a3fe 100644 (file)
@@ -23,6 +23,7 @@ package Bugzilla::DB::Oracle;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use parent qw(Bugzilla::DB);
 
@@ -721,6 +722,7 @@ package Bugzilla::DB::Oracle::st;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use parent -norequire, qw(DBI::st);
  
index 165eea559aa7e6ba48a7df39f5c5f0bebb81e991..9c5758432b6593831698e210d02d6ba779246e20 100644 (file)
@@ -23,6 +23,7 @@ package Bugzilla::DB::Pg;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use Bugzilla::Error;
 use Bugzilla::Version;
index e2ace02c3a6a4f11fdd627cf3a8aee5c03636aa3..8c81f7a5938669e939142d65cdd7f534b01840a4 100644 (file)
@@ -17,6 +17,7 @@ package Bugzilla::DB::Schema;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use Bugzilla::Error;
 use Bugzilla::Hook;
index 9d634243f83320887161502541128ba767e55848..0195fcb06c06b273c6bf2719e65b62824454580a 100644 (file)
@@ -15,6 +15,7 @@ package Bugzilla::DB::Schema::Mysql;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use Bugzilla::Error;
 
index 1554a0fe198641e6e06969e48ebf9f104be526f5..8fb5479b1d19eeec8f5c79ef927f51321776c2dd 100644 (file)
@@ -15,6 +15,7 @@ package Bugzilla::DB::Schema::Oracle;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use parent qw(Bugzilla::DB::Schema);
 use Carp qw(confess);
index fa784ef7d4da82529df5a10749ac3c0b1206e83e..55a93227282eaf3e0ed5f2e0e79151cd1f7291ac 100644 (file)
@@ -15,6 +15,7 @@ package Bugzilla::DB::Schema::Pg;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use parent qw(Bugzilla::DB::Schema);
 use Storable qw(dclone);
index b29d7da22585146e1473d965e6b079270f1dc0bf..ccdbfd8aaa01ddd7969c40082a069540d1552284 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::DB::Schema::Sqlite;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use parent qw(Bugzilla::DB::Schema);
 
index cffe3b65c7f823a0cdc1ec3d415993fa4147cd6c..ddafc16962228a691e0c85c7d7960852eb0e7e74 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::DB::Sqlite;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use parent qw(Bugzilla::DB);
 
index 37b28095a40cb8e6e0ec73b505c3a9ea453d630f..05a7ce7b3a7caffba28af9f195ecff54819325a4 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::Error;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use parent qw(Exporter);
 
index 53bf6cd6633e7eecef3cf9fcfcaef7fdbdb37552..17193f1b677d101b987a2a7bca13afe044a07cde 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::Extension;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use Bugzilla::Constants;
 use Bugzilla::Error;
index e72a9429343d8bf38b96821c29bc415541ced4cc..761f7b94e981420bd4eb0abcdcaf90b525a91ead 100644 (file)
@@ -59,6 +59,7 @@ package Bugzilla::Field;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use parent qw(Exporter Bugzilla::Object);
 @Bugzilla::Field::EXPORT = qw(check_field get_field_id get_legal_field_values);
index 6f730072fbf25cb25e2bdb856480c305084cff8d..a66f69cee7aa9004e5e0f9da6d4633d58fe2b009 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::Field::Choice;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use parent qw(Bugzilla::Field::ChoiceInterface Bugzilla::Object);
 
index f7f5e3b7330ce1c8be038b031dca1da81cb653d1..634d36ad1272eb35434837d92f9a5eece499e1c1 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::Field::ChoiceInterface;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use Bugzilla::Constants;
 use Bugzilla::Error;
index ff9d236db6cd05ada74a2a6d3d5e75dff10cf9f8..381cc1174e688ecb3536052eb54868170e5b4ff9 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::Flag;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 =head1 NAME
 
index 34973684af3310e9ee5a41fc58a291375d626106..5cbfdd97961d790cd3e71f02005490f8de41eb76 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::FlagType;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 =head1 NAME
 
index 965fa226f9d537893f828da6dd6606a6847492ff..a750e353e2261fcceaba588f376c13b19bc58de3 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::Group;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use parent qw(Bugzilla::Object);
 
index 5e4114398f44335b424246b236e908d47d905eeb..14bac04357cc95537baf76a78e0259d04b2097e1 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::Hook;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 sub process {
     my ($name, $args) = @_;
index 41f88d70b326b2ff6a199c5a597ea7fa39634ca7..07bc9d6c3bc67c69027df9a6e0c4ed525274a292 100644 (file)
@@ -17,6 +17,7 @@ package Bugzilla::Install;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use Bugzilla::Component;
 use Bugzilla::Config qw(:admin);
index ba301863d9bb7e1a1dbbb8101e17d1bce9077272..19f14319083ba79febd23fbd4b9acd6d3478229d 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::Install::CPAN;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use parent qw(Exporter);
 our @EXPORT = qw(
index 74b2b1e39b162fb40d3664e59e83f40d59f00924..dd0f3608be838236c3debb1cbaae17c7af23d88a 100644 (file)
@@ -12,6 +12,7 @@ package Bugzilla::Install::DB;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use Bugzilla::Constants;
 use Bugzilla::Hook;
index d980a2199476abe12cd47d32aed955e0e0a7c36a..157a8429eca691386d11f4eb7a2ae500b2e67524 100644 (file)
@@ -17,6 +17,7 @@ package Bugzilla::Install::Filesystem;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use Bugzilla::Constants;
 use Bugzilla::Error;
index 71a9c6ae089f8b3a6e6dcef1767060a6f7c16c9f..d4d1311cc696be9027d5b4977da01481f18d86e4 100644 (file)
@@ -17,6 +17,7 @@ package Bugzilla::Install::Localconfig;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use Bugzilla::Constants;
 use Bugzilla::Install::Util qw(bin_loc install_string);
index d9e49017d1c70c967454b4611aa7408151541181..06b061f5771e92be3bf7389e0cf74fef524cd801 100644 (file)
@@ -15,6 +15,7 @@ package Bugzilla::Install::Requirements;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use Bugzilla::Constants;
 use Bugzilla::Install::Util qw(install_string bin_loc
index 66ea7169ea0ffe29fd910cde976bf2e9d004debf..c05037061f9eb38bda4bbf327214a0959b4c38ac 100644 (file)
@@ -13,6 +13,7 @@ package Bugzilla::Install::Util;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use Bugzilla::Constants;
 
index 9c176b005f369fc2dc4cf565aff759ece721149a..e0b7f54482ec211e7e9c28efc397dc42edd4524c 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::Job::BugMail;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use Bugzilla::BugMail;
 BEGIN { eval "use parent qw(Bugzilla::Job::Mailer)"; }
index 8fce80dd01c12db0af49ecc9200302aa7588a9d8..cd1c23445a261f4ad843079b09687644ac4dfa37 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::Job::Mailer;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use Bugzilla::Mailer;
 BEGIN { eval "use parent qw(TheSchwartz::Worker)"; }
index 4ff5750da8099020a17f665dab595d13ef76aef3..d5ceda8e9faa251b00a21f54243c33a9361c943c 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::JobQueue;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use Bugzilla::Constants;
 use Bugzilla::Error;
index a0d6a77cb5de247eee356b29f34addab1bd8a30e..104a97b0bafbb86dcab03a41d53e59098fb0e7dc 100644 (file)
@@ -13,6 +13,7 @@ package Bugzilla::JobQueue::Runner;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use Cwd qw(abs_path);
 use File::Basename;
index a8c098854a3e89944ca8c222cfeccb59d091d4ea..afa93e1e9ad2d155ff57bc16b4ae3dcc533bbe2a 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::Keyword;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use parent qw(Bugzilla::Object);
 
index 169363b6d4dd8af07bbedbbc2b3010181f928814..576f69da834f1e38c65c1399fe083f477c989246 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::Mailer;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use parent qw(Exporter);
 @Bugzilla::Mailer::EXPORT = qw(MessageToMTA build_thread_marker);
index 2763ecb2bd47f0ee845b1e4c1f752b8e51b0ac7c..0731d4fedf9ddcb1d9f3be6c920b84a29c6aef64 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::Migrate;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use Bugzilla::Attachment;
 use Bugzilla::Bug qw(LogActivityEntry);
index 2778d28cc8a391ffd7f230434d0df5b317d579f3..5feda4b8db3f206b5ab6ab5b63eaa104fe89cc0c 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::Migrate::Gnats;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use parent qw(Bugzilla::Migrate);
 
index 83438e7c6835e9f8e32d57d093fed2e5c4e8afe0..cf7e3e35f18e7f865e1412814c223f058f2bf3da 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::Milestone;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use parent qw(Bugzilla::Object);
 
index f2080363299081c6ff7bcbcdba14b54dddb8a4a1..8f25e2b20c20394e7b26047c127698ca4f06fa10 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::Object;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use Bugzilla::Constants;
 use Bugzilla::Hook;
index 3d4de7430aa9c6d6f9099f3a21c4ae5c1562090d..30ebc7c6cd564080589ad04db4aedcb59d63290a 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::Product;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use parent qw(Bugzilla::Field::ChoiceInterface Bugzilla::Object);
 
index 14b831672227e724eb6b9149a0c593e78e73748f..96e442fa032e5beb5870f8af1cf67020d54ab040 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::RNG;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use parent qw(Exporter);
 use Bugzilla::Constants qw(ON_WINDOWS);
index fe2b826614f759d40150ff1c082bef399ec6a1d4..10af2ea9efc40e6ce1592b9459a601577285291d 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::Report;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use parent qw(Bugzilla::Object);
 
index 036e0a60581daaa89aa0381a195807aeb426d9c5..59d7f86ec9f0fbdeab12b1b41cccd104ad33591c 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::Search;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use parent qw(Exporter);
 @Bugzilla::Search::EXPORT = qw(
index 9d3d690a393b1875710289cd3f0623b1b27f9826..1d7872c7857a98b205d8e17476238012ef6a468a 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::Search::Clause;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use Bugzilla::Error;
 use Bugzilla::Search::Condition qw(condition);
index eb306525c2b459b787a0570a0a49e2535ce99d21..590c737fad069fb00b22877594d2f28a42efc976 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::Search::ClauseGroup;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use parent qw(Bugzilla::Search::Clause);
 
index eab4ab79d246c19ce566aa86247d29ebe7e11600..306a63eed3c0528e0a85f93f25c7afcf0c822467 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::Search::Condition;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use parent qw(Exporter);
 our @EXPORT_OK = qw(condition);
index 98e8a64827497efdab0a70ec1d2c821e5d01a7ac..c00f1835162dc41006781b0262c527350582392f 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::Search::Quicksearch;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use Bugzilla::Error;
 use Bugzilla::Constants;
index cc1c3c582e8e6b53cf592693576b70d9d202e0cd..e774c7fe0593b762bf170144ef946d4906c95955 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::Search::Recent;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use parent qw(Bugzilla::Object);
 
index 2e4c4a336172f7ee56acf97dee839200dbf11790..50a9cdd6721021ef88fced455acc022e6f77a65b 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::Search::Saved;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use parent qw(Bugzilla::Object);
 
index 9496ff97cf94982f9f6ff6da126b0239b8417845..48312b2fa96e5b688aadc899e1f054d9d44f4aab 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::Send::Sendmail;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use parent qw(Email::Send::Sendmail);
 
index 6c11f5dbcfd9f452d7d8f635dbf9914dee285cf4..22202c6f18d1a62048c6c4409460d6c33eafdc20 100644 (file)
@@ -16,6 +16,7 @@ package Bugzilla::Series;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use Bugzilla::Error;
 use Bugzilla::Util;
index 1f8862a36a0b2de381c137793a1ef0e701379b26..27551021604a9fbbf5aa83131035d1b613dad75d 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::Status;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 # This subclasses Bugzilla::Field::Choice instead of implementing 
 # ChoiceInterface, because a bug status literally is a special type
index 52ccee593c0711d28d9c76ab5ce15b03cc70d2d1..96896b47eb9fb4ff092ac60a545acf7073d38ccf 100644 (file)
@@ -10,6 +10,7 @@ package Bugzilla::Template;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use Bugzilla::Constants;
 use Bugzilla::WebService::Constants;
index 1e75d1d6f1a2229a73fc25247514244b7ec37bc7..470e6a9ee1feb2073329164b0d066991cace9f07 100644 (file)
@@ -10,6 +10,7 @@ package Bugzilla::Template::Context;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use parent qw(Template::Context);
 
index f0de2ed4d181ed7ac0468e3026c9277d866f6078..806dd903b68507493e9fd0c4ca468e39528262b4 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::Template::Plugin::Bugzilla;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use parent qw(Template::Plugin);
 
index 19260f0057fcac939ecae687006dc295d6a4c23d..669c77614ce0ff7ce81206282e202654117b143a 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::Template::Plugin::Hook;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use parent qw(Template::Plugin);
 
index 71f24183bbbf25cd1353c5deedc6ff584ed05c3a..670f5a661a0fdf034114a8a1e850bcdcd5421627 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::Token;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use Bugzilla::Constants;
 use Bugzilla::Error;
index 6a101219956f355f3b4c9a9624452798d648deae..72a7108a8e344518fa49990d4485715a20746148 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::Update;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use Bugzilla::Constants;
 
index 3efe02633f9b38963bd36210a2637a2e8dbc5047..58565daf90ccdaad14cdb15c144b19b2cf9fd600 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::User;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use Bugzilla::Error;
 use Bugzilla::Util;
index 75a4a6beb02533e88091a56d257a5a2e9128f606..d268a0a93c43bc6e5dee3228a793d0d8a38fa969 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::User::APIKey;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use parent qw(Bugzilla::Object);
 
index 5b518da6507822fe2025c3460d627a4b257a84c0..ea3bbfb542305365e9ec5041078722c020d03273 100644 (file)
@@ -10,6 +10,7 @@ package Bugzilla::User::Setting;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use parent qw(Exporter);
 
index 4465185e3ff2247b290d37af073efd2f0f1cb5be..d980b7a92e069cc7d0d13f4c444dc0e8938493be 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::User::Setting::Lang;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use parent qw(Bugzilla::User::Setting);
 
index 1e4e95a03e34e8803d739fcd602b636a577a73d5..7b0688c0c833188ba3a86f85cba1d14e74a23645 100644 (file)
@@ -10,6 +10,7 @@ package Bugzilla::User::Setting::Skin;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use parent qw(Bugzilla::User::Setting);
 
index 848fa418f8b004609dac2cfb1488a9e15af41b15..8959d1ddacecd16afe140ffa2e5ea8af3341e325 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::User::Setting::Timezone;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use DateTime::TimeZone;
 
index 4e685cacc75f9eaa64c64352a194780c7fd3a2f5..963e3051139a85dc051f090dcd0556c47a0fa1ed 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::UserAgent;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use parent qw(Exporter);
 our @EXPORT = qw(detect_platform detect_op_sys);
index 4f0711b7e0c74e62329436bf27ba73ee8b5738c4..fa74ee60415d09bcdf4bc0735c766c775b94b048 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::Util;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use parent qw(Exporter);
 @Bugzilla::Util::EXPORT = qw(trick_taint detaint_natural detaint_signed
index c6b178a8ab9bd882fa3d49653c9c5e992487c63a..4b332ff2bc95d1e935c335ee507f13a0c81e96d7 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::Version;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use parent qw(Bugzilla::Object Exporter);
 
index b8404251a5dde2b5030555803e8bb403b0d5cc6e..eb85db9273bfd714f1fb652551448221da9635b4 100644 (file)
@@ -11,6 +11,7 @@ package Bugzilla::WebService;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use Bugzilla::WebService::Server;
 
index 0346511a9434f65aef27606fd43268fb15b67480..4689ae0f28cef0c50198bbd5febe261033441c69 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::WebService::Bug;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use parent qw(Bugzilla::WebService);
 
index 71b637fef659a4fb682257cfd9f7396707a9679a..0fc214db87c216b3cddfcdc29dd8c52c6864421d 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::WebService::BugUserLastVisit;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use parent qw(Bugzilla::WebService);
 
index 6b5f9844ffc6cb6a288650abac06c94cbd1a7eea..8333f99c480e30fca1f82771fdb2c29cc6a26b62 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::WebService::Bugzilla;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use parent qw(Bugzilla::WebService);
 use Bugzilla::Constants;
index bbc967ce7ac2dd483c4f77e8c62dc77dda81b5b2..8e1b3ae8a6e4f416b6cb9b29e2112a60cb512edd 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::WebService::Classification;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use parent qw (Bugzilla::WebService);
 
index edf3d5b8cf0c1f51ee30815004b978649c880b7b..893e244b89228e8fbb6900b25b6bff7f2275a9c1 100644 (file)
@@ -8,8 +8,9 @@
 package Bugzilla::WebService::Component;
 
 use 5.10.1;
-
 use strict;
+use warnings;
+
 use base qw(Bugzilla::WebService);
 
 use Bugzilla::Component;
index b6dead40d052814aab89d75b571a4157cbd2275e..f76f6b481429d11df1a85c30e75f6dde9aaaaecd 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::WebService::Constants;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use parent qw(Exporter);
 
index b6b8aba8938fa8781517bc727ead65016652b77e..cf654e6592d3195b2c9e88abe52b9ed36b75d0cd 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::WebService::FlagType;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use parent qw(Bugzilla::WebService);
 use Bugzilla::Component;
index b1303924169fc90f041dd40a121f16bdd1cab3b3..d0ee6fdbad9fd5f0ad5a5c07d5f6421b51d8d728 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::WebService::Group;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use parent qw(Bugzilla::WebService);
 use Bugzilla::Constants;
index 2def7788633dedccdeb66c5dfb09a9e22bbfc414..0e78836bf1a0e8e3038e5eda0620bdd979f70530 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::WebService::Product;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use parent qw(Bugzilla::WebService);
 use Bugzilla::Product;
index 89cb1a130ac26842ac9e0328f6c70ecfc2e2a583..7950c7a3b928ab5e2a247b0344b3e948a59bec87 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::WebService::Server;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use Bugzilla::Error;
 use Bugzilla::Util qw(datetime_from);
index 177e2618dda32ba1cf2f2a572fc3769e471559b5..6cda47480551c34227e722c7dd3067116655f8cc 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::WebService::Server::JSONRPC;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use Bugzilla::WebService::Server;
 BEGIN {
index bd1b500a5520d906da708717fbde42c3fab55eff..5ab973f1a9872bebad7dd7e215224d206756c304 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::WebService::Server::REST;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use parent qw(Bugzilla::WebService::Server::JSONRPC);
 
index 7ab111d86ce3e0a7260a404684bea5245068b932..cf9f054c7b01e34cc0b85f8842028b1f5384130d 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::WebService::Server::REST::Resources::Bug;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use Bugzilla::WebService::Constants;
 use Bugzilla::WebService::Bug;
index 1c86f77bce3a7556d9f79d92c3148ae3c497e2c1..a8f3f9330ed2af1bdd3a55fd7b624dc9b753df90 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::WebService::Server::REST::Resources::Bugzilla;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use Bugzilla::WebService::Constants;
 use Bugzilla::WebService::Bugzilla;
index 2bbc05c72c852ddcd69c04fd61e3609b9a0cdb59..3f8d32a036181b44891ecaaa98ffc908c2b29ccb 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::WebService::Server::REST::Resources::Classification;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use Bugzilla::WebService::Constants;
 use Bugzilla::WebService::Classification;
index 8c047d409d283bf2007257586085d46d6c8c7deb..198c0933294f4bc5fc4d5dbf45a7b10fe98850e8 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::WebService::Server::REST::Resources::Component;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use Bugzilla::WebService::Constants;
 use Bugzilla::WebService::Component;
index 1de5b1264536df3a11afdd5824057e12868f173d..21dad0f73a869b79e46786bc8d7631e334f1c297 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::WebService::Server::REST::Resources::FlagType;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use Bugzilla::WebService::Constants;
 use Bugzilla::WebService::FlagType;
index 62f8af6dd62c2c8ba1b29a81325372d650c32d8c..b052e384b4759b4c02b993d5327e4255ba6cdc01 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::WebService::Server::REST::Resources::Group;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use Bugzilla::WebService::Constants;
 use Bugzilla::WebService::Group;
index fef7c6174c90b2a2d18d8069d842001e6a8c7f15..607b94b538a5dd2bb2ee647b80d8e41d814c87f4 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::WebService::Server::REST::Resources::Product;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use Bugzilla::WebService::Constants;
 use Bugzilla::WebService::Product;
index 539a9313a5204ae957f7813fd84ef3d501b10be7..a83109e73705b7c506a86fc75e39ea7ab656f820 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::WebService::Server::REST::Resources::User;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use Bugzilla::WebService::Constants;
 use Bugzilla::WebService::User;
index 40c66a8f95b88a0539d761f7bad7901d812d94d1..8f9070ae76b7f43c34666d1506f0864b0b634c5a 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::WebService::Server::XMLRPC;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use XMLRPC::Transport::HTTP;
 use Bugzilla::WebService::Server;
@@ -107,6 +108,7 @@ package Bugzilla::XMLRPC::Deserializer;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 # We can't use "use parent" because XMLRPC::Serializer doesn't return
 # a true value.
@@ -205,6 +207,7 @@ package Bugzilla::XMLRPC::SOM;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use XMLRPC::Lite;
 our @ISA = qw(XMLRPC::SOM);
@@ -231,6 +234,7 @@ package Bugzilla::XMLRPC::Serializer;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use Scalar::Util qw(blessed reftype);
 # We can't use "use parent" because XMLRPC::Serializer doesn't return
index 32d6f28ecb7265b183f320a4e585fc6944c07a49..4c8af7f6c2d51b4c0f19370dc501bc8c0e54b64e 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::WebService::User;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use parent qw(Bugzilla::WebService);
 
index 6290139a322f13dcd61cd8ea54c94679463cd2df..e2bc780026b77f97bee8343e87f17273e12931f6 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::WebService::Util;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use Bugzilla::Flag;
 use Bugzilla::FlagType;
index 488127dfa9d525c1cec795bcebdb8719fde0d80f..eeaea6da4e0416200511fca098b8e99a96d4602f 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::Whine;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use parent qw(Bugzilla::Object);
 
index a4fd54539a546393921924e8a51c1bb82f1f0b08..b2a2c9e0734b17b5719a7cdc9d341b06375223e2 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::Whine::Query;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use parent qw(Bugzilla::Object);
 
index f16c629af48df7a54ecd189ca2b773d89b2d8bb6..11f0bf16f1f469e91b876fc1844336a29a681b43 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::Whine::Schedule;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use parent qw(Bugzilla::Object);
 
index 70a6aa20ec8b3d208d12ed620d12e5dcd23bd624..1dc9b2c1bd36dcd96266f408394b27d65b81934c 100755 (executable)
--- a/admin.cgi
+++ b/admin.cgi
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -wT
+#!/usr/bin/perl -T
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -8,6 +8,8 @@
 
 use 5.10.1;
 use strict;
+use warnings;
+
 use lib qw(. lib);
 
 use Bugzilla;
index 94510fb190f4f178ea3ded10138819b9fdacbdf2..f2eca56947f4f5b7f22e6685e8af61ceb32ce970 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -wT
+#!/usr/bin/perl -T
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -8,6 +8,8 @@
 
 use 5.10.1;
 use strict;
+use warnings;
+
 use lib qw(. lib);
 
 use Bugzilla;
index d88939171fdb66d9542c8548d47bd0619553e4c4..eeea3bdf56fdc17dba7368c30d7d0ec68715ed67 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -wT
+#!/usr/bin/perl -T
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -8,6 +8,8 @@
 
 use 5.10.1;
 use strict;
+use warnings;
+
 use lib qw(. lib);
 
 use Bugzilla;
index 015077650f046fc21aa3bb435f8e1bdf1e2e629d..96ac9e1cf70d48f61e4658bd753d2d0a29bbfb55 100755 (executable)
--- a/chart.cgi
+++ b/chart.cgi
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -wT
+#!/usr/bin/perl -T
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -29,6 +29,8 @@
 
 use 5.10.1;
 use strict;
+use warnings;
+
 use lib qw(. lib);
 
 use Bugzilla;
index 145faf04e30964083871e19d928c2f848f5d98ed..c7e8994e58df9433c2f7f2acae88fadbb9d1e1e9 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/perl
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
 # Initialization
 ######################################################################
 
-use strict;
 use 5.10.1;
+use strict;
+use warnings;
+
 use File::Basename;
 use Getopt::Long qw(:config bundling);
 use Pod::Usage;
index 9884b7c48fbaad0f861faea2583937e8d5ae8eee..57486bfed8e95e05c47a8d9afc8b7329efcabd6c 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -wT
+#!/usr/bin/perl
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
index 66b661e5a915ccd751840ebc3653cb4594b7bdbe..77d9f11eef1c6369459e2d4fb8995990037e97ea 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -wT
+#!/usr/bin/perl -T
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -8,6 +8,8 @@
 
 use 5.10.1;
 use strict;
+use warnings;
+
 use lib qw(. lib);
 
 use Bugzilla;
index 330fae5b39f6ce7bc48df66c61bb7356f967bf38..3473c9e71896d5d9a1f1bb890e923076c53e13a4 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/perl
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -8,6 +8,8 @@
 
 use 5.10.1;
 use strict;
+use warnings;
+
 use lib qw(. lib);
 
 use Getopt::Long qw(:config bundling);
index 02f9547262527ac3dde6abdd2f00583de7898aa7..56a9a3f8a183092189370ce0bd5166f0a00f1bf6 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -wT
+#!/usr/bin/perl -T
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -8,6 +8,8 @@
 
 use 5.10.1;
 use strict;
+use warnings;
+
 use lib qw(. lib);
 
 use Bugzilla;
index fbae60de4a3f09a4c57b012f50a5c8e5cb76bfd0..31e0a0f6d0b6bdc14fb2d41db44621c9c6224c07 100644 (file)
@@ -6,6 +6,7 @@ package Bugzilla;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 #######################################################################
 # The goal of this tiny module is to let Bugzilla packagers of        #
index 8850d642ad3fcae865811d25688a7e59936af740..af8c253084f5d952ed1c9243b0f1f86889348fb4 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/perl
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -18,7 +18,10 @@ C<bz_webservice_demo.pl --help> for detailed help
 
 =cut
 
+use 5.10.1;
 use strict;
+use warnings;
+
 use lib qw(lib);
 use Getopt::Long;
 use Pod::Usage;
index f50002e85c2f0e9866c1800c6a82902d4a0dde22..fcdbefd56d37ab19871ea46e065b345606a42366 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/perl
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -6,7 +6,10 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
+use 5.10.1;
 use strict;
+use warnings;
+
 use lib qw(. lib);
 use Bugzilla;
 use Bugzilla::Constants;
index dbd514ebdfbf4d57118622d42747017ac0d9d010..fe2342cd9b099e68d4915bf9cc6ccbbbb3844fe3 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/perl
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -6,6 +6,8 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
+use warnings;
+
 use File::Basename;
 BEGIN { chdir dirname($0) . "/.."; }
 use lib qw(. lib);
@@ -51,7 +53,7 @@ sub d {
 
 # p: print as a single string (normal behavior puts list items on separate lines)
 sub p {
-    local $^W=0; # suppress possible undefined var message 
+    no warnings; # suppress possible undefined var message 
     print(@_, "\n");
     return ();
 }
index 8f76dac7f6d5be18921f6b42e5707befa89ded97..d9bffb7bbedcc7d99e9a39b456619309ea115dbc 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/perl
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -6,7 +6,10 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
+use 5.10.1;
 use strict;
+use warnings;
+
 use lib qw(. lib);
 
 use Bugzilla;
index 4e24b614ac8fcf0609d05b0bbf40dc8e14407e7c..91a77b839438739729c74a85bf8e4ba34d1d7f3a 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/perl
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -6,8 +6,10 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
+use 5.10.1;
 use strict;
 use warnings;
+
 use lib qw(. lib);
 
 use Bugzilla;
@@ -68,6 +70,8 @@ my ($modules, $subs) = code_files_to_subroutines($to_dir);
 my $config_pm = <<END;
 package Bugzilla::Extension::$extension_name;
 use strict;
+use warnings;
+
 use constant NAME => '$extension_name';
 $install_requirements
 __PACKAGE__->NAME;
@@ -76,6 +80,8 @@ END
 my $extension_pm = <<END;
 package Bugzilla::Extension::$extension_name;
 use strict;
+use warnings;
+
 use parent qw(Bugzilla::Extension);
 
 $modules
index b9ac2059caa8902c0cf9c0619ecf78cbb193b9e2..33b042c66bb604222c6b83b9bb5fd84d85617868 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/perl
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -6,8 +6,10 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
+use 5.10.1;
 use strict;
 use warnings;
+
 use lib qw(. lib);
 
 use Bugzilla;
index 62b087921329791c80244c6558419dc41cdea025..ddb828eefaf9aec09366954967afe737c36c7812 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -wT
+#!/usr/bin/perl -T
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -6,7 +6,9 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
+use 5.10.1;
 use strict;
+use warnings;
 
 =head1 NAME
 
index 08a87b5fe73a9ecbbf6c6a7eb6b60910f77c8ec7..be93dcbb5dfbd5aa940654113a0d53c4cccb56bf 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/perl
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -9,7 +9,9 @@
 # mysqld-watcher.pl - a script that watches the running instance of
 # mysqld and kills off any long-running SELECTs against the shadow_db
 # 
+use 5.10.1;
 use strict;
+use warnings;
 
 # some configurables: 
 
index de204f155685e490a0c84dd04917697ceee42e2e..e6da47b924a91687deb2834b23583a1ca31be0fb 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/perl
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -6,7 +6,10 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
+use 5.10.1;
 use strict;
+use warnings;
+
 use lib qw(. lib);
 
 use Bugzilla;
index da0eafd30f0e028be0b08599d5869b817624db8a..223d91f6c6d85810a9fc268ea56dad771e00a0f3 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -wT
+#!/usr/bin/perl -T
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -8,6 +8,8 @@
 
 use 5.10.1;
 use strict;
+use warnings;
+
 use lib qw(. lib);
 
 use Bugzilla;
index 47455413562a113426b0daeeaae8fba00ba93656..b9034aa8de229004c254516205b2bfc35d1a5873 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -wT
+#!/usr/bin/perl -T
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -8,6 +8,8 @@
 
 use 5.10.1;
 use strict;
+use warnings;
+
 use lib qw(. lib);
 
 use Bugzilla;
index 6ad96477bbec769985af4a2c113215472b2698b2..f618624ec3195c0f512404cebd829ab9024f9ac4 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -wT
+#!/usr/bin/perl -T
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -6,7 +6,9 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
+use 5.10.1;
 use strict;
+use warnings;
 
 use lib qw(. lib);
 
index c9516ab00fce9a96546a1cefa0d106646351ae66..21d6cc8db34d93f87311ac30513af798fa8e55f4 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -wT
+#!/usr/bin/perl -T
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -8,6 +8,8 @@
 
 use 5.10.1;
 use strict;
+use warnings;
+
 use lib qw(. lib);
 
 use Bugzilla;
index db8260b5d47de243dadfbdab248c90df9528a82b..f74dc75f43b512c6a0c7e0ba671c444bedb4ed13 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -wT
+#!/usr/bin/perl -T
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -8,6 +8,8 @@
 
 use 5.10.1;
 use strict;
+use warnings;
+
 use lib qw(. lib);
 
 use Bugzilla;
index 2147ac47dc07160d21282757fc519d895e500b42..31bf0c13e110700782af5533df6a89c3f2fc3a5b 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -wT
+#!/usr/bin/perl -T
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -8,6 +8,8 @@
 
 use 5.10.1;
 use strict;
+use warnings;
+
 use lib qw(. lib);
 
 use Bugzilla;
index beac9c37e357554239d4bf3fbe3b2ae4ba0d4608..c1bf036be32e25f2dc5c43434f74c9e568a5580c 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -wT
+#!/usr/bin/perl -T
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -8,6 +8,8 @@
 
 use 5.10.1;
 use strict;
+use warnings;
+
 use lib qw(. lib);
 
 use Bugzilla;
index b743433b7353da3223cb805c51c03635a0944f7a..b06ce27ad9e46bc19aa580813fa139d84ffa9272 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -wT
+#!/usr/bin/perl -T
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -9,6 +9,8 @@
 
 use 5.10.1;
 use strict;
+use warnings;
+
 use lib qw(. lib);
 
 use Bugzilla;
index 4423931fe317bcadce065e839d848e99b3597cf9..7442365f35a8653c0c5ad3c8e3f2fce39ebc65c1 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -wT
+#!/usr/bin/perl -T
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -8,6 +8,8 @@
 
 use 5.10.1;
 use strict;
+use warnings;
+
 use lib qw(. lib);
 
 use Bugzilla;
index 5ac9dcccec3e983b7a7b7f5ec608af9cd1796412..e8351bdd6970d9f4fff4ba60ee2fb9137a6bc5be 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -wT
+#!/usr/bin/perl -T
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -8,6 +8,8 @@
 
 use 5.10.1;
 use strict;
+use warnings;
+
 use lib qw(. lib);
 
 use Bugzilla;
index 73ef1e528026e537bc44c50f04b5294f9e014b0c..06144fc5c588c0dc779be48409dfb00c07c5fa75 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -wT
+#!/usr/bin/perl -T
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -8,6 +8,8 @@
 
 use 5.10.1;
 use strict;
+use warnings;
+
 use lib qw(. lib);
 
 use Bugzilla;
index 87c44f03c5fbcd2bcd77a177a6a2bdb9650fca1e..2fd9f569a48ce25908eb78cbe3107a96a08a8600 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -wT
+#!/usr/bin/perl -T
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -8,6 +8,8 @@
 
 use 5.10.1;
 use strict;
+use warnings;
+
 use lib qw(. lib);
 
 use Bugzilla;
index 5a7f6643b1a1db19e370c2d991b540cfa4a9d807..41496f3622956f675300861e1a8220b10e0e8882 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -wT
+#!/usr/bin/perl -T
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -8,6 +8,8 @@
 
 use 5.10.1;
 use strict;
+use warnings;
+
 use lib qw(. lib);
 
 use Bugzilla;
index 927c1a9d1b658ef4031ea310594d534444743005..e20e623fb9d5e29c5ec19cd0ec74eab09a73fe66 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -wT
+#!/usr/bin/perl -T
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -8,6 +8,8 @@
 
 use 5.10.1;
 use strict;
+use warnings;
+
 use lib qw(. lib);
 
 use Bugzilla;
index 3486d70612fa56150464de65aa0033beee83a473..ae569c2eb4bdba8eb8758724aac4454556363ec5 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -wT
+#!/usr/bin/perl -T
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -8,6 +8,8 @@
 
 use 5.10.1;
 use strict;
+use warnings;
+
 use lib qw(. lib);
 
 use Bugzilla;
index 77d112f46a66888cb5e2f4d665738ea16a33856a..f2526575ebb7fbd19e4209957556e1d6f759090d 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -wT
+#!/usr/bin/perl -T
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -8,6 +8,8 @@
 
 use 5.10.1;
 use strict;
+use warnings;
+
 use lib qw(. lib);
 
 use Bugzilla;
index f2c6e2cc39f2aea18b5feaff3811f62005ecc9e6..b10a497ba5b39234cfef7ca25182ad905953a595 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -wT
+#!/usr/bin/perl -T
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -8,6 +8,8 @@
 
 use 5.10.1;
 use strict;
+use warnings;
+
 use lib qw(. lib);
 
 use Bugzilla;
index 5eb49d1396cfbe19d50ac68cfcbb68c082158499..20c72ce902e21ba4069d4263bcac9531d2a5bc8f 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -wT
+#!/usr/bin/perl -T
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -8,6 +8,8 @@
 
 use 5.10.1;
 use strict;
+use warnings;
+
 use lib qw(. lib);
 
 use Bugzilla;
index 5bceed761ba5bc0931a6d969830c1b085185eecd..48775fc52a0b37e62cfd45b07496452afc745f66 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -wT
+#!/usr/bin/perl -T
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -6,12 +6,10 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
-# This is a script to edit the values of fields that have drop-down
-# or select boxes. It is largely a copy of editmilestones.cgi, but 
-# with some cleanup.
-
 use 5.10.1;
 use strict;
+use warnings;
+
 use lib qw(. lib);
 
 use Bugzilla;
index 2dce7bd0a2bd5cbb21c4cc20f602f85e95ef5647..674a20b7e9c9de7aa0154fc4cae4c7235eda9105 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -wT
+#!/usr/bin/perl -T
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -8,6 +8,8 @@
 
 use 5.10.1;
 use strict;
+use warnings;
+
 use lib qw(. lib);
 
 use Bugzilla;
index 84a97b877687ae0f27de75c88e111ff2c86a988e..b11c44949c17f4ba57c6860bba0f40a431a017f8 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -wT
+#!/usr/bin/perl -T
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -12,6 +12,8 @@
 
 use 5.10.1;
 use strict;
+use warnings;
+
 use lib qw(. lib);
 
 use Bugzilla;
index 68cd984586cd3796db3b4da0a37c69722ba169c5..71b14af7786148f170be6619430b4f9732bfa863 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -wT
+#!/usr/bin/perl -T
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -8,6 +8,8 @@
 
 use 5.10.1;
 use strict;
+use warnings;
+
 use lib qw(. lib);
 
 use Bugzilla;
index 03db450f7a4815fa56377f72a15572c7c8deb694..ae4c42bde5f670d51022177baed4cff30caf88d5 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -wT
+#!/usr/bin/perl -T
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
index baf5d78339d4ffb6f0bede37b445dfd9f0a87e42..3f22fe4b840eb07c6bbc43133b857d0bd45f9d28 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -wT
+#!/usr/bin/perl -T
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -18,6 +18,8 @@
 
 use 5.10.1;
 use strict;
+use warnings;
+
 use lib qw(. lib);
 
 use Bugzilla;
index 91808bc4b7a9698eb9fd1a4bf39c74948a5a9e7f..4984f19a9d7efc97371c69c0cef542468848a8cb 100644 (file)
@@ -9,6 +9,8 @@ package Bugzilla::Extension::BmpConvert;
 
 use 5.10.1;
 use strict;
+use warnings;
+
 use constant NAME => 'BmpConvert';
 use constant REQUIRED_MODULES => [
   {
index eb634f4a127b67b72a442782f24266623ccae773..b8201f106df085df55a4791c9c7bec22d1bce92f 100644 (file)
@@ -9,6 +9,8 @@ package Bugzilla::Extension::BmpConvert;
 
 use 5.10.1;
 use strict;
+use warnings;
+
 use parent qw(Bugzilla::Extension);
 
 use Image::Magick;
index 13635dc7f5a173193f44fd9a43d4629912ecffab..e7782ef6ced1fdf37b821f0b18dff53789089405 100644 (file)
@@ -9,6 +9,8 @@ package Bugzilla::Extension::Example;
 
 use 5.10.1;
 use strict;
+use warnings;
+
 use constant NAME => 'Example';
 use constant REQUIRED_MODULES => [
     {
index c9449d8b0a06acb2e9412bd41a65a9911d92c3c3..256589dab0804508893f48a135d7e143b1d7d37b 100644 (file)
@@ -9,6 +9,8 @@ package Bugzilla::Extension::Example;
 
 use 5.10.1;
 use strict;
+use warnings;
+
 use parent qw(Bugzilla::Extension);
 
 use Bugzilla::Constants;
index c1cfe62cc9557178525d2a55e9a63a7946262648..15c58a881e47869ebc60adc3dba03a42ab77fb5e 100644 (file)
@@ -9,6 +9,8 @@ package Bugzilla::Extension::Example::Auth::Login;
 
 use 5.10.1;
 use strict;
+use warnings;
+
 use parent qw(Bugzilla::Auth::Login);
 use constant user_can_create_account => 0;
 use Bugzilla::Constants;
index df5059a05f4c0f3a3b0fbe334e04cb2f38eb47fa..49fd9fbb783dc77236ff6072a693151334133835 100644 (file)
@@ -9,6 +9,8 @@ package Bugzilla::Extension::Example::Auth::Verify;
 
 use 5.10.1;
 use strict;
+use warnings;
+
 use parent qw(Bugzilla::Auth::Verify);
 use Bugzilla::Constants;
 
index 1e62306c4314b30cfea1ae150a14d18a4e2bd94e..e0eac5f8a829bdc6249d2a89e7eade39740a1f9c 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::Extension::MoreBugUrl;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use constant NAME => 'MoreBugUrl';
 
index ed0fe7b1f7cae3e3d9ef596979f1431ec2ddb140..18507f8d1e5ca369f73291595bfd4087f18da321 100644 (file)
@@ -9,6 +9,8 @@ package Bugzilla::Extension::MoreBugUrl;
 
 use 5.10.1;
 use strict;
+use warnings;
+
 use parent qw(Bugzilla::Extension);
 
 use constant MORE_SUB_CLASSES => qw(
index fbb7be1a127c3a33f39e3440568127d437cbcb65..dcc85992d694c43d92437da76b5eee360c3a100e 100644 (file)
@@ -9,6 +9,8 @@ package Bugzilla::Extension::MoreBugUrl::BitBucket;
 
 use 5.10.1;
 use strict;
+use warnings;
+
 use parent qw(Bugzilla::BugUrl);
 
 ###############################
index 75d5ece3975930bbb2f86e93de904bf8110b9375..74951735bf90a3c79855c94d5cb0dca278f2556a 100644 (file)
@@ -9,6 +9,8 @@ package Bugzilla::Extension::MoreBugUrl::GetSatisfaction;
 
 use 5.10.1;
 use strict;
+use warnings;
+
 use parent qw(Bugzilla::BugUrl);
 
 ###############################
index ea090e8652b7f1c3e79c40f3953f8fae396fff86..6f201d7b1f0e97d815993fd689f9c716ed96dfc5 100644 (file)
@@ -9,6 +9,8 @@ package Bugzilla::Extension::MoreBugUrl::PHP;
 
 use 5.10.1;
 use strict;
+use warnings;
+
 use parent qw(Bugzilla::BugUrl);
 
 ###############################
index a1ca6fd8856ea7d10fb51a68b25550e4c30c9a2e..acb90cf396accb512101d60ffc195a724d027eca 100644 (file)
@@ -9,6 +9,8 @@ package Bugzilla::Extension::MoreBugUrl::RT;
 
 use 5.10.1;
 use strict;
+use warnings;
+
 use parent qw(Bugzilla::BugUrl);
 
 ###############################
index a1c1382ce30da641684d600a59f2a9009dab781b..57a07123945d2f1bc05d2a63a7c44417d33ffa33 100644 (file)
@@ -9,6 +9,8 @@ package Bugzilla::Extension::MoreBugUrl::Redmine;
 
 use 5.10.1;
 use strict;
+use warnings;
+
 use parent qw(Bugzilla::BugUrl);
 
 ###############################
index 08128353fcf95631659925b532caad0ba7aab5de..af5ff068418429b2ebb7a12cde3bbca5ffed0244 100644 (file)
@@ -9,6 +9,8 @@ package Bugzilla::Extension::MoreBugUrl::ReviewBoard;
 
 use 5.10.1;
 use strict;
+use warnings;
+
 use parent qw(Bugzilla::BugUrl);
 
 ###############################
index a8bccba0884644be3152382fd16a4c6c7a7371f9..a4bf08492fed442bd9a71811d6c41f84a173a503 100644 (file)
@@ -9,6 +9,8 @@ package Bugzilla::Extension::MoreBugUrl::Rietveld;
 
 use 5.10.1;
 use strict;
+use warnings;
+
 use parent qw(Bugzilla::BugUrl);
 
 ###############################
index a8a439b415eff20f518bab27931586ff552d3740..efda1fa4f54e44b2e8eb441fe447acc5a57f2413 100644 (file)
@@ -9,6 +9,8 @@ package Bugzilla::Extension::MoreBugUrl::Savane;
 
 use 5.10.1;
 use strict;
+use warnings;
+
 use parent qw(Bugzilla::BugUrl);
 
 ###############################
index a42567feecace849fbd5c681abe3bb4970630522..681cbae2df5a9f169989add2b6fbcc123b2b9b03 100644 (file)
@@ -9,5 +9,7 @@ package Bugzilla::Extension::OldBugMove;
 
 use 5.10.1;
 use strict;
+use warnings;
+
 use constant NAME => 'OldBugMove';
 __PACKAGE__->NAME;
index b58ffe883beefdfc3e2e86fe0af51250dd1c8b16..375707fd22939007c8548ce1e29eb68c0b38cbb4 100644 (file)
@@ -9,6 +9,8 @@ package Bugzilla::Extension::OldBugMove;
 
 use 5.10.1;
 use strict;
+use warnings;
+
 use parent qw(Bugzilla::Extension);
 use Bugzilla::Constants;
 use Bugzilla::Error;
index c922e1faf8235f86df88bebc7642636f132c3832..05e3ed2773b4112a2fac7553ce4992cf92dd759f 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::Extension::OldBugMove::Params;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use Bugzilla::Config::Common;
 
index 812ede60f87ced6def5a8f25965d9f5b1a07bac9..97c44933e2a714a9af49035adf0a05d42d97850d 100644 (file)
@@ -9,6 +9,7 @@ package Bugzilla::Extension::Voting;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use constant NAME => 'Voting';
 
index e54a2aab0f8abd09e6753d62520fc4b87d8e8068..8009f16bbcceffb1858a1b7d1f538426df4122f4 100644 (file)
@@ -9,6 +9,8 @@ package Bugzilla::Extension::Voting;
 
 use 5.10.1;
 use strict;
+use warnings;
+
 use parent qw(Bugzilla::Extension);
 
 use Bugzilla::Bug;
index e2d3321b195ae85d14b8652fabf0bcbb8b05b01e..d4256694bca97c60ccec79cf4a929eae04e1d384 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/perl
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -8,6 +8,8 @@
 
 use 5.10.1;
 use strict;
+use warnings;
+
 use lib qw(. lib);
 
 use Bugzilla;
index 05d8635302337c04c27ba5e22916094fdb4cf403..8750c63a110883c9f5e38de8d2f235200435cf1c 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -wT
+#!/usr/bin/perl -T
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -12,6 +12,7 @@
 
 use 5.10.1;
 use strict;
+use warnings;
 
 #####################################################################
 #
index 032c6c371abbdbf09f17f0c80af41423572df8bd..15d34451d51beb2d5ddc4e68770f827d0f156f8d 100755 (executable)
--- a/index.cgi
+++ b/index.cgi
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -wT
+#!/usr/bin/perl -T
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -8,6 +8,8 @@
 
 use 5.10.1;
 use strict;
+use warnings;
+
 use lib qw(. lib);
 
 use Bugzilla;
index a7359917de6278e7bff828b74e9d1a9d01f10360..365f10bbfa9ce8ff9c7b022522d8700bc46d8009 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/perl
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
index d538e478469a81a380cee5eda6ed14e188acae01..f6722467c0e3152a4d8b30da1ca9d4871796a2ac 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/perl
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -8,6 +8,7 @@
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use Cwd qw(abs_path);
 use File::Basename;
index 0b56d57c192aac28f62f493155cf3a4c49411bc6..2c93585b0913a4fae452fcfe708feb0ffff47164 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -wT
+#!/usr/bin/perl -T
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -8,6 +8,8 @@
 
 use 5.10.1;
 use strict;
+use warnings;
+
 use lib qw(. lib);
 
 use Bugzilla;
index 0ce85fa154ee601d02a5589e5a8d0579e12d00d5..eb2a84b59bce4b754be6aaf9adbf4a45e877b70c 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/perl
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -8,6 +8,8 @@
 
 use 5.10.1;
 use strict;
+use warnings;
+
 use File::Basename;
 BEGIN { chdir dirname($0); }
 use lib qw(. lib);
index 572bcc7f9722a3bec78894dd02e04ba59c50c6f3..bdce744ca1c05142d690c8b04b82849e8e52e58b 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -wT
+#!/usr/bin/perl -T
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -112,6 +112,7 @@ package Bugzilla::ModPerl::ResponseHandler;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use parent qw(ModPerl::Registry);
 use Bugzilla;
@@ -148,6 +149,7 @@ package Bugzilla::ModPerl::CleanupHandler;
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use Apache2::Const -compile => qw(OK);
 
index a2aa9d883c049c27e56f804c07e10f4a265bdac6..b60ce8bdee3b2caa289818cf7c6091f9f35ece0c 100755 (executable)
--- a/page.cgi
+++ b/page.cgi
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -wT
+#!/usr/bin/perl -T
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -15,6 +15,8 @@
 
 use 5.10.1;
 use strict;
+use warnings;
+
 use lib qw(. lib);
 
 use Bugzilla;
index 782bb22939f863f21e45b48eb0c8ab3027924cbf..4365352e7fc85b538641fda4e65225118e4f922f 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -wT
+#!/usr/bin/perl -T
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -8,6 +8,8 @@
 
 use 5.10.1;
 use strict;
+use warnings;
+
 use lib qw(. lib);
 
 use Bugzilla;
index 389ee18d18ebc94eb59c3e9d1e2b20d9e854aa29..bc558682ed2a4c7b1994b9d34f33586118f19a0d 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -wT
+#!/usr/bin/perl -T
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -6,20 +6,10 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
-# Implementation notes for this file:
-#
-# 1) the 'id' form parameter is validated early on, and if it is not a valid
-# bugid an error will be reported, so it is OK for later code to simply check
-# for a defined form 'id' value, and it can assume a valid bugid.
-#
-# 2) If the 'id' form parameter is not defined (after the initial validation),
-# then we are processing multiple bugs, and @idlist will contain the ids.
-#
-# 3) If we are processing just the one id, then it is stored in @idlist for
-# later processing.
-
 use 5.10.1;
 use strict;
+use warnings;
+
 use lib qw(. lib);
 
 use Bugzilla;
index 620cf2737d748534c76bb6198b7ef54e702898dd..faf670d231c8ecbf29bffa6c934389b044964fae 100755 (executable)
--- a/query.cgi
+++ b/query.cgi
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -wT
+#!/usr/bin/perl -T
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -8,6 +8,8 @@
 
 use 5.10.1;
 use strict;
+use warnings;
+
 use lib qw(. lib);
 
 use Bugzilla;
index 03fd49548d0b843c4fc6e0282bf59949360b3b4d..b2790be548f6abaf96f905d0590fdfdb8589394a 100755 (executable)
--- a/quips.cgi
+++ b/quips.cgi
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -wT
+#!/usr/bin/perl -T
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -8,6 +8,8 @@
 
 use 5.10.1;
 use strict;
+use warnings;
+
 use lib qw(. lib);
 
 use Bugzilla;
index 0c1cb9ad638035c06027a9129ea5d19463ac6bd7..fd1f58ea0a2235c38c2dd1d6b48e52cec25da9c8 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -wT
+#!/usr/bin/perl -T
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -8,6 +8,8 @@
 
 use 5.10.1;
 use strict;
+use warnings;
+
 use lib qw(. lib);
 
 use Bugzilla;
index 4cfa6a6a421feecbc2162b633f6e4499115e675c..a4d26f4d757b009860efd302533b8e1217f22ba2 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -wT
+#!/usr/bin/perl -T
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -8,6 +8,8 @@
 
 use 5.10.1;
 use strict;
+use warnings;
+
 use lib qw(. lib);
 
 use Bugzilla;
index 1f1791e4228a740d22cf5ee747b2a72fe8faaf2f..cdc9d4a87d89eaa24bab0faed2b390aff1760f05 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -wT
+#!/usr/bin/perl -T
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -8,6 +8,8 @@
 
 use 5.10.1;
 use strict;
+use warnings;
+
 use lib qw(. lib);
 
 use Bugzilla;
index 771a32074f558fdbbd48d0ebc7a6bf86a43933c0..566781a0c0169a82c6599c7dca471e3c0d74b156 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -wT
+#!/usr/bin/perl -T
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -8,6 +8,8 @@
 
 use 5.10.1;
 use strict;
+use warnings;
+
 use lib qw(. lib);
 
 use Bugzilla;
index 928eb9ce451ff272454249ae30a8356546ea966c..f12fb64c44f503ef21afe8e360b2f22bf10aa3b2 100755 (executable)
--- a/rest.cgi
+++ b/rest.cgi
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -wT
+#!/usr/bin/perl -T
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -8,6 +8,8 @@
 
 use 5.10.1;
 use strict;
+use warnings;
+
 use lib qw(. lib);
 
 use Bugzilla;
index 6a6450007998abcdf36dc6ba0e4c2d8f8ad4dda2..52de88e102f126b1cc9fb2f3e53a747682b5772f 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/perl
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -9,6 +9,8 @@
 use 5.10.1;
 use diagnostics;
 use strict;
+use warnings;
+
 use lib qw(lib);
 
 use Test::Harness qw(&runtests $verbose);
index 2f87fb828e7c558cdbc2a1675f017223ed57b263..889d7f3e6e51c8b1f43e89fea1909fc3d46022de 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -wT
+#!/usr/bin/perl -T
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -8,6 +8,8 @@
 
 use 5.10.1;
 use strict;
+use warnings;
+
 use lib qw(. lib);
 
 use Bugzilla;
index 819c661528d35d3ba5b597be8b47050058ceb15d..7fd12b17663f8cc05db15304af3f042f0af4050b 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/perl
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -8,6 +8,8 @@
 
 use 5.10.1;
 use strict;
+use warnings;
+
 use lib qw(. lib);
 
 use Bugzilla;
index e9b281ec2da4e749d49372992ca3befd63a97dba..7de8bed5f7e0615e43c541a7dc20822d72c8d8bf 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -wT
+#!/usr/bin/perl -T
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -8,6 +8,8 @@
 
 use 5.10.1;
 use strict;
+use warnings;
+
 use lib qw(. lib);
 
 use Bugzilla;
index 1383dd018f6f5cb71b374474d0172fe400c9a561..7df10fcb847d56f4b28287d81aafbb2ab6069ed6 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -wT
+#!/usr/bin/perl -T
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -8,6 +8,8 @@
 
 use 5.10.1;
 use strict;
+use warnings;
+
 use lib qw(. lib);
 
 use Bugzilla;
index 95815f86b7489ceef3c440a92fe27131e4df051c..f69cae740857ecb266a2ffe5933eef749b0d2d85 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -wT
+#!/usr/bin/perl -T
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -8,6 +8,8 @@
 
 use 5.10.1;
 use strict;
+use warnings;
+
 use lib qw(. lib);
 
 use Bugzilla;
index 6445b617535a2e4c1e48782be517647a4e15e77e..02c8fd94f7a7ae9deb72bff120443aa8da3c0ad9 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -wT
+#!/usr/bin/perl -T
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -8,6 +8,8 @@
 
 use 5.10.1;
 use strict;
+use warnings;
+
 use lib qw(. lib);
 
 use File::Temp;
index fb8a59cc37f7f193efdaecda3c7ef95b2899c0a5..9e193df02156fa0728a343a358b1daa06428f605 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -wT
+#!/usr/bin/perl -T
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -8,6 +8,8 @@
 
 use 5.10.1;
 use strict;
+use warnings;
+
 use lib qw(. lib);
 
 use Bugzilla;
index 0d32d16e45966dca00853fd07c35174c5ea459e4..3bdf8ee52f173ac2e01a52f8259e06e835bc07ce 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -wT
+#!/usr/bin/perl -T
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -8,6 +8,8 @@
 
 use 5.10.1;
 use strict;
+use warnings;
+
 use lib qw(. lib);
 
 use Date::Parse;         # strptime
index af7793093819d42c4388d87e23e8178d146d0eac..7097ad36119daa4197b69d6e7712997d6da12a1d 100644 (file)
 #Bugzilla Test 1#
 ###Compilation###
 
-use strict;
 use 5.10.1;
+use strict;
+use warnings;
+
 use lib qw(. lib t);
 use Config;
 use Support::Files;
@@ -52,7 +54,7 @@ sub compile_file {
        $libs = join " ", map { "-I\"$_\"" } split /$Config{path_sep}/, $ENV{PERL5LIB};
     }
     my $perl = qq{"$^X"};
-    my $output = `$perl $libs -wc$T $file 2>&1`;
+    my $output = `$perl $libs -c$T $file 2>&1`;
     chomp($output);
     my $return_val = $?;
     $output =~ s/^\Q$file\E syntax OK$//ms;
index 02a57bea1fb790cadefff2e3b99b13c02cb6abd4..e95870d70adaa675a2978bd6d81110e90674a44c 100644 (file)
 #Bugzilla Test 2#
 ####GoodPerl#####
 
+use 5.10.1;
 use strict;
+use warnings;
 
 use lib 't';
 
 use Support::Files;
 
-use Test::More tests => (scalar(@Support::Files::testitems) * 4);
+use Test::More tests => (scalar(@Support::Files::testitems)
+                         + scalar(@Support::Files::test_files)) * 5;
 
-my @testitems = @Support::Files::testitems; # get the files to test.
+my @testitems = (@Support::Files::test_files, @Support::Files::testitems);
+my @require_taint = qw(email_in.pl importxml.pl mod_perl.pl whine.pl);
 
 foreach my $file (@testitems) {
     $file =~ s/\s.*$//; # nuke everything after the first space (#comment)
@@ -38,23 +42,33 @@ foreach my $file (@testitems) {
         my $flags;
         if (!defined $ext || $ext eq "pl") {
             # standalone programs aren't taint checked yet
-            $flags = "w";
+            if (grep { $file eq $_ } @require_taint) {
+                $flags = 'T';
+            }
+            else {
+                $flags = '';
+            }
         } elsif ($ext eq "pm") {
             ok(0, "$file is a module, but has a shebang");
             next;
         } elsif ($ext eq "cgi") {
             # cgi files must be taint checked
-            $flags = "wT";
+            $flags = 'T';
         } else {
             ok(0, "$file has shebang but unknown extension");
             next;
         }
 
-        if ($file_line1 =~ m#^\#\!/usr/bin/perl\s#) {
-            if ($file_line1 =~ m#\s-$flags#) {
-                ok(1,"$file uses standard perl location and -$flags");
-            } else {
-                ok(0,"$file is MISSING -$flags --WARNING");
+        if ($file_line1 =~ m#^\#\!/usr/bin/perl(?:\s-(\w+))?$#) {
+            my $file_flags = $1 || '';
+            if ($flags eq $file_flags) {
+                ok(1, "$file uses standard perl location" . ($flags ? " and -$flags flag" : ""));
+            }
+            elsif ($flags) {
+                ok(0, "$file is MISSING -$flags flag --WARNING");
+            }
+            else {
+                ok(0, "$file has unexpected -$file_flags flag --WARNING");
             }
         } else {
             ok(0,"$file uses non-standard perl location");
@@ -63,7 +77,10 @@ foreach my $file (@testitems) {
 }
 
 foreach my $file (@testitems) {
+    my $found_use_perl = 0;
     my $found_use_strict = 0;
+    my $found_use_warnings = 0;
+
     $file =~ s/\s.*$//; # nuke everything after the first space (#comment)
     next if (!$file); # skip null entries
     if (! open (FILE, $file)) {
@@ -71,38 +88,28 @@ foreach my $file (@testitems) {
         next;
     }
     while (my $file_line = <FILE>) {
-        if ($file_line =~ m/^\s*use strict/) {
-            $found_use_strict = 1;
-            last;
-        }
+        $found_use_perl = 1 if $file_line =~ m/^\s*use 5.10.1/;
+        $found_use_strict = 1 if $file_line =~ m/^\s*use strict/;
+        $found_use_warnings = 1 if $file_line =~ m/^\s*use warnings/;
+        last if ($found_use_perl && $found_use_strict && $found_use_warnings);
     }
     close (FILE);
+    if ($found_use_perl) {
+        ok(1,"$file requires Perl 5.10.1");
+    } else {
+        ok(0,"$file DOES NOT require Perl 5.10.1 --WARNING");
+    }
+
     if ($found_use_strict) {
         ok(1,"$file uses strict");
     } else {
         ok(0,"$file DOES NOT use strict --WARNING");
     }
-}
 
-foreach my $file (@testitems) {
-    my $found_use_feature = 0;
-    $file =~ s/\s.*$//; # nuke everything after the first space (#comment)
-    next if (!$file); # skip null entries
-    if (! open (FILE, $file)) {
-        ok(0,"could not open $file --WARNING");
-        next;
-    }
-    while (my $file_line = <FILE>) {
-        if ($file_line =~ m/^\s*use 5.10.1/) {
-            $found_use_feature = 1;
-            last;
-        }
-    }
-    close (FILE);
-    if ($found_use_feature) {
-        ok(1,"$file requires Perl 5.10.1");
+    if ($found_use_warnings) {
+        ok(1,"$file uses warnings");
     } else {
-        ok(0,"$file DOES NOT require Perl 5.10.1 --WARNING");
+        ok(0,"$file DOES NOT use warnings --WARNING");
     }
 }
 
index 0d6a215b1f21056aca670a6f36037bd5ff4574fd..2a257ffb9a2f7f68a17e750ea36f12d916300856 100644 (file)
@@ -10,7 +10,9 @@
 #Bugzilla Test 3#
 ###Safesystem####
 
+use 5.10.1;
 use strict;
+use warnings;
 
 use lib 't';
 
@@ -22,7 +24,7 @@ use Test::More tests => scalar(@Support::Files::testitems);
 # This will handle verbosity for us automatically.
 my $fh;
 {
-    local $^W = 0;  # Don't complain about non-existent filehandles
+    no warnings qw(unopened);  # Don't complain about non-existent filehandles
     if (-e \*Test::More::TESTOUT) {
         $fh = \*Test::More::TESTOUT;
     } elsif (-e \*Test::Builder::TESTOUT) {
index 604559dc0bac849825f307890f930a71d302574b..d38f9e16b2bece113f597a5b80d1b788321214bb 100644 (file)
@@ -9,7 +9,9 @@
 #Bugzilla Test 4#
 ####Templates####
 
+use 5.10.1;
 use strict;
+use warnings;
 
 use lib 't';
 
@@ -26,7 +28,7 @@ use Test::More tests => ( scalar(@referenced_files) + 2 * $num_actual_files );
 # This will handle verbosity for us automatically.
 my $fh;
 {
-    local $^W = 0;  # Don't complain about non-existent filehandles
+    no warnings qw(unopened);  # Don't complain about non-existent filehandles
     if (-e \*Test::More::TESTOUT) {
         $fh = \*Test::More::TESTOUT;
     } elsif (-e \*Test::Builder::TESTOUT) {
index 8cb2f7e8f01334b9cc0620dd6ce72fceec7fc552..b6de8cee391fd47577415ffd72aa34c4e3401d8b 100644 (file)
@@ -9,7 +9,9 @@
 #Bugzilla Test 5#
 #####no_tabs#####
 
+use 5.10.1;
 use strict;
+use warnings;
 
 use lib 't';
 
index 7f17c5169a239785fbbd38ecea47813a51dfe854..24e00242d9280d2e22a0f39c6fcf8caa0fbdcfcb 100644 (file)
 #Bugzilla Test 6#
 ####Spelling#####
 
+use 5.10.1;
+use strict;
+use warnings;
+
 use lib 't';
 use Support::Files;
 
-BEGIN {
-    #add the words to check here:
-    @evilwords = qw(
-        anyways
-        appearence
-        arbitary
-        cancelled
-        critera
-        databasa
-        dependan
-        existance
-        existant
-        paramater
-        refered
-        repsentation
-        suported
-        varsion
-    );
-}
-
 # -1 because 006spellcheck.t must not be checked.
 use Test::More tests => scalar(@Support::Files::testitems)
                         + scalar(@Support::Files::test_files) - 1;
@@ -41,7 +25,7 @@ use Test::More tests => scalar(@Support::Files::testitems)
 # This will handle verbosity for us automatically.
 my $fh;
 {
-    local $^W = 0;  # Don't complain about non-existent filehandles
+    no warnings qw(unopened);  # Don't complain about non-existent filehandles
     if (-e \*Test::More::TESTOUT) {
         $fh = \*Test::More::TESTOUT;
     } elsif (-e \*Test::Builder::TESTOUT) {
@@ -53,7 +37,24 @@ my $fh;
 
 my @testitems = (@Support::Files::testitems, @Support::Files::test_files);
 
-# at last, here we actually run the test...
+#add the words to check here:
+my @evilwords = qw(
+    anyways
+    appearence
+    arbitary
+    cancelled
+    critera
+    databasa
+    dependan
+    existance
+    existant
+    paramater
+    refered
+    repsentation
+    suported
+    varsion
+);
+
 my $evilwordsregexp = join('|', @evilwords);
 
 foreach my $file (@testitems) {
index 495102ffa9d9103649f8823261f745bd5da29b59..66c2df032fbbf39835ca4d864fc94423b3cb6f4b 100644 (file)
@@ -9,14 +9,18 @@
 #Bugzilla Test 7#
 #####Util.pm#####
 
+use 5.10.1;
+use strict;
+use warnings;
+
 use lib 't';
 use Support::Files;
 use Test::More tests => 17;
 use DateTime;
 
 BEGIN { 
-    use_ok(Bugzilla);
-    use_ok(Bugzilla::Util);
+    use_ok('Bugzilla');
+    use_ok('Bugzilla::Util');
 }
 
 # We need to override user preferences so we can get an expected value when
index 9551ae2b246b2e72182eb001c5c4d5ad9301913a..f0a26d13f6668cf28fd0284caf04b45650d4f2aa 100644 (file)
 
 # Sample exploit code: '>"><script>alert('Oh dear...')</script>
 
+use 5.10.1;
 use strict;
-use lib qw(. lib t);
+use warnings;
 
-use vars qw(%safe);
+use lib qw(. lib t);
 
 use Bugzilla::Constants;
 use Support::Templates;
@@ -30,6 +31,7 @@ use Cwd;
 my $oldrecsep = $/;
 my $topdir = cwd;
 $/ = undef;
+our %safe;
 
 foreach my $path (@Support::Templates::include_paths) {
     $path =~ s|\\|/|g if ON_WINDOWS;  # convert \ to / in path if on windows
@@ -84,9 +86,9 @@ foreach my $path (@Support::Templates::include_paths) {
             ok(1, "($lang/$flavor) $file is filter-safe");
             next;
         }
-        
+
         # Read the entire file into a string
-        open (FILE, "<$file") || die "Can't open $file: $!\n";    
+        open (FILE, "<$file") || die "Can't open $file: $!\n";
         my $slurp = <FILE>;
         close (FILE);
 
index 988f747f287d8e7b2a799b3effe9be86626a4bca..e36651edb2a44b29ae1c61aa0f5d68cd29ffe9eb 100644 (file)
@@ -15,7 +15,9 @@
 # "[% terms.bug %]". This test makes sure the relevant words aren't used
 # bare.
 
+use 5.10.1;
 use strict;
+use warnings;
 
 use lib 't';
 
index 89a26ba5efa4356473e8f4f3521bf7ee7eb2f756..afd29a652b790ccc63c705e17eccfe76444ee517 100644 (file)
 #Bugzilla Test 10#
 ## dependencies ##
 
+use 5.10.1;
 use strict;
+use warnings;
+
 use lib qw(. lib t);
 
 use Support::Files;
index fc66bca63b335d124dc5ec9181e4b86627c568bf..588db1fc5c3d096250353f3f8b29f6f5adeba420 100644 (file)
@@ -10,7 +10,9 @@
 #Bugzilla Test 11#
 ##POD validation##
 
+use 5.10.1;
 use strict;
+use warnings;
 
 use lib 't';
 
@@ -52,7 +54,7 @@ use constant MODULE_WHITELIST => qw(
 # This will handle verbosity for us automatically.
 my $fh;
 {
-    local $^W = 0;  # Don't complain about non-existent filehandles
+    no warnings qw(unopened);  # Don't complain about non-existent filehandles
     if (-e \*Test::More::TESTOUT) {
         $fh = \*Test::More::TESTOUT;
     } elsif (-e \*Test::Builder::TESTOUT) {
index 7600cbd02fcd0cfb92132b54a8599e5ccfb5942d..0ef043fa5f62b258d09543df25fcb6747ac61b58 100644 (file)
 #Bugzilla Test 12#
 ######Errors######
 
+use 5.10.1;
 use strict;
+use warnings;
+
 use lib qw(. lib t);
 
 use Bugzilla::Constants;
index c1f9c7f0cf18110128e0be034c3a13a4c62d1e3b..217176ff202d6f14e8e89284af726addd405c72c 100644 (file)
 # Check the Bugzilla database schema to ensure no field names conflict
 # with SQL reserved words.
 
+use 5.10.1;
 use strict;
+use warnings;
+
 use lib qw(. t lib);
 use Bugzilla;
 use Bugzilla::DB::Schema;
index 330a473b1ff465f5e2348046315ca2db4b080af2..85fa9f5839da3775919cb181c8ea8af195c90e27 100644 (file)
@@ -8,15 +8,19 @@
 
 package Support::Files;
 
+use 5.10.1;
+use strict;
+use warnings;
+
 use File::Find;
 
-@additional_files = ();
+our @additional_files = ();
 
-@files = glob('*');
+our @files = glob('*');
 find(sub { push(@files, $File::Find::name) if $_ =~ /\.pm$/;}, 'Bugzilla');
 push(@files, 'extensions/create.pl');
 
-@extensions =
+our @extensions =
     grep { $_ ne 'extensions/create.pl' && ! -e "$_/disabled" }
     glob('extensions/*');
 
@@ -24,7 +28,7 @@ foreach my $extension (@extensions) {
     find(sub { push(@files, $File::Find::name) if $_ =~ /\.pm$/;}, $extension);
 }
 
-@test_files = glob('t/*.t');
+our @test_files = glob('t/*.t');
 
 sub isTestingFile {
     my ($file) = @_;
@@ -40,9 +44,11 @@ sub isTestingFile {
     return undef;
 }
 
-foreach $currentfile (@files) {
+our (@testitems, @module_files);
+
+foreach my $currentfile (@files) {
     if (isTestingFile($currentfile)) {
-        push(@testitems,$currentfile);
+        push(@testitems, $currentfile);
     }
     push(@module_files, $currentfile) if $currentfile =~ /\.pm$/;
 }
index 620cce25e663f665648a491b81e19ede1eaa17f2..65be229e3c5840a7ceac926f4307f5f59597be99 100644 (file)
@@ -6,6 +6,11 @@
 # defined by the Mozilla Public License, v. 2.0.
 
 package Support::Systemexec;
+
+use 5.10.1;
+use strict;
+use warnings;
+
 require Exporter;
 @ISA = qw(Exporter);
 @EXPORT = qw(system exec);
index 2185d687f9f6b7d1836492f2ce277861e88abbfa..d17c7334b74210a4b8f5bd893cd94526ff3ad022 100644 (file)
@@ -7,15 +7,15 @@
 
 package Support::Templates;
 
+use 5.10.1;
 use strict;
+use warnings;
 
 use lib 't';
 use parent qw(Exporter);
-@Support::Templates::EXPORT = 
-         qw(@languages @include_paths @english_default_include_paths
-         %include_path @referenced_files %actual_files $num_actual_files);
-use vars qw(@languages @include_paths @english_default_include_paths
-            %include_path @referenced_files %actual_files $num_actual_files);
+@Support::Templates::EXPORT =
+    qw(@languages @include_paths @english_default_include_paths
+       @referenced_files %actual_files $num_actual_files);
 
 use Bugzilla;
 use Bugzilla::Constants;
@@ -25,18 +25,9 @@ use Support::Files;
 use File::Find;
 use File::Spec;
 
-# The available template languages
-@languages = ();
-
-# The colon separated includepath per language
-%include_path = ();
-
-# All include paths
-@include_paths = ();
-
 # English default include paths
-push @english_default_include_paths,
-    File::Spec->catdir(bz_locations()->{'templatedir'}, 'en', 'default');
+our @english_default_include_paths =
+    (File::Spec->catdir(bz_locations()->{'templatedir'}, 'en', 'default'));
 
 # And the extensions too
 foreach my $extension (@Support::Files::extensions) {
@@ -47,19 +38,19 @@ foreach my $extension (@Support::Files::extensions) {
 }
 
 # Files which are referenced in the cgi files
-@referenced_files = ();
+our @referenced_files = ();
 
 # All files sorted by include_path
-%actual_files = ();
+our %actual_files = ();
 
 # total number of actual_files
-$num_actual_files = 0;
+our $num_actual_files = 0;
 
 # Set the template available languages and include paths
-@languages = @{ Bugzilla->languages };
-@include_paths = @{ template_include_path({ language => Bugzilla->languages }) };
+our @languages = @{ Bugzilla->languages };
+our @include_paths = @{ template_include_path({ language => Bugzilla->languages }) };
 
-my @files;
+our @files;
 
 # Local subroutine used with File::Find
 sub find_templates {
index 79fbb995cc088a79ddc4fb2f88f1297a4ab832a9..68ed260c1ff994ea040d663da982b70f86d48687 100644 (file)
@@ -16,6 +16,7 @@ package Bugzilla::Extension::[% name %];
 
 use 5.10.1;
 use strict;
+use warnings;
 
 use constant NAME => '[% name %]';
 
index 637dfdd28d8cf81bca33196f96624534dd8d6f73..823440421e5ebff3df64ff83a281f64c9a3f934c 100644 (file)
@@ -16,6 +16,8 @@ package Bugzilla::Extension::[% name %];
 
 use 5.10.1;
 use strict;
+use warnings;
+
 use parent qw(Bugzilla::Extension);
 
 # This code for this is in [% path %]/lib/Util.pm
index a5fbde04d9767979a49d8b6e9735ee95ba25febd..3baab57fd0781a1f57cead4fc59c9e944a3bf5f0 100644 (file)
@@ -16,6 +16,8 @@ package Bugzilla::Extension::[% name %]::Util;
 
 use 5.10.1;
 use strict;
+use warnings;
+
 use parent qw(Exporter);
 our @EXPORT = qw(
     
index c3220cab52b985465bf8aa1aa928b98383460f31..d9d5afd1a06d7e91381feebeb60a6f65eec03770 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -wT
+#!/usr/bin/perl -T
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -12,6 +12,7 @@
 
 use 5.10.1;
 use strict;
+use warnings;
 
 say "content-type:text/plain\n";
 say "OK " . ($::ENV{MOD_PERL} || "mod_cgi");
index f00f551f964ec46ca978cfa8313cca065759c62c..eeb78359210264be528a1df60d11f9d3dda4c208 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/perl
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -12,6 +12,8 @@
 
 use 5.10.1;
 use strict;
+use warnings;
+
 use lib qw(. lib);
 
 use Bugzilla;
index d52106fa71cf892164d04f8f1f124b9ac5b5c0a8..13e54b695ac2c8bd5e3402521e6c8cb79510ca77 100755 (executable)
--- a/token.cgi
+++ b/token.cgi
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -wT
+#!/usr/bin/perl -T
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -8,6 +8,8 @@
 
 use 5.10.1;
 use strict;
+use warnings;
+
 use lib qw(. lib);
 
 use Bugzilla;
index f798d4c7678387c27428515833e143e6c14f438f..bb57b56b357fc7a96635a2234bef0fca5e429222 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -wT
+#!/usr/bin/perl -T
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -8,6 +8,8 @@
 
 use 5.10.1;
 use strict;
+use warnings;
+
 use lib qw(. lib);
 
 use Bugzilla;
index 45a8b081561f0a95c7022ce19d176ad165630cc8..ae692a941b185d194890b973df72da22024ece57 100755 (executable)
--- a/votes.cgi
+++ b/votes.cgi
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -wT
+#!/usr/bin/perl -T
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -11,6 +11,8 @@
 
 use 5.10.1;
 use strict;
+use warnings;
+
 use lib qw(. lib);
 
 use Bugzilla;
index d8cc39174d72fa7fe51f7df47eac18374e1f8f3b..a7e3ee1cf0e24f5f3b90fd6afc5bca5a1b56bdcc 100755 (executable)
--- a/whine.pl
+++ b/whine.pl
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -wT
+#!/usr/bin/perl -T
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -12,6 +12,8 @@
 
 use 5.10.1;
 use strict;
+use warnings;
+
 use lib qw(. lib);
 
 use Bugzilla;
index c8138116208e7d2436969c1fa030487dd2458559..4812b4cfe27d62ed5ef3588a875f9433b75cbee1 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/perl
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -16,6 +16,8 @@
 
 use 5.10.1;
 use strict;
+use warnings;
+
 use lib qw(. lib);
 
 use Bugzilla;
index 5fff5f7e106e0e2f4445d5823cfd382abb857309..893bfba5d86179964db0bcb128d09fac82769078 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -wT
+#!/usr/bin/perl -T
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -8,6 +8,8 @@
 
 use 5.10.1;
 use strict;
+use warnings;
+
 use lib qw(. lib);
 
 use Bugzilla;