Bug 2505 - Add commented use warnings where missing in *.pm
authorDonovan Jones <donovan@catalyst.net.nz>
Sun, 18 Apr 2010 23:52:29 +0000 (11:52 +1200)
committerChris Cormack <chrisc@catalyst.net.nz>
Wed, 21 Apr 2010 08:28:51 +0000 (20:28 +1200)
48 files changed:
C4/Accounts.pm
C4/Auth.pm
C4/Auth_with_cas.pm
C4/Auth_with_ldap.pm
C4/AuthoritiesMarc.pm
C4/AuthoritiesMarc/MARC21.pm
C4/AuthoritiesMarc/UNIMARC.pm
C4/BackgroundJob.pm
C4/Barcodes/PrinterConfig.pm
C4/Bookseller.pm
C4/Branch.pm
C4/Budgets.pm
C4/Circulation.pm
C4/Contract.pm
C4/Csv.pm
C4/Heading.pm
C4/Heading/MARC21.pm
C4/Installer.pm
C4/Items.pm
C4/Koha.pm
C4/Languages.pm
C4/Maintainance.pm
C4/Members.pm
C4/Members/AttributeTypes.pm
C4/Output.pm
C4/Overdues.pm
C4/Print.pm
C4/Record.pm
C4/Reports.pm
C4/Reports/Guided.pm
C4/Reserves.pm
C4/Ris.pm
C4/RotatingCollections.pm
C4/Scheduler.pm
C4/Search.pm
C4/Search/PazPar2.pm
C4/Serials/Frequency.pm
C4/Serials/NumberPattern.pm
C4/Suggestions.pm
C4/UploadedFile.pm
C4/XISBN.pm
C4/Z3950.pm
install_misc/UpgradeBackup.pm
installer/InstallAuth.pm
misc/translator/TmplToken.pm
misc/translator/TmplTokenType.pm
misc/translator/TmplTokenizer.pm
misc/translator/VerboseWarnings.pm

index bbc6c00..ff2188b 100644 (file)
@@ -19,6 +19,7 @@ package C4::Accounts;
 
 
 use strict;
+#use warnings; FIXME - Bug 2505
 use C4::Context;
 use C4::Stats;
 use C4::Members;
index d745b63..94a05fb 100644 (file)
@@ -18,6 +18,7 @@ package C4::Auth;
 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
 use strict;
+#use warnings; FIXME - Bug 2505
 use Digest::MD5 qw(md5_base64);
 use Storable qw(thaw freeze);
 use URI::Escape;
index 501fdef..8cf6b03 100644 (file)
@@ -18,6 +18,7 @@ package C4::Auth_with_cas;
 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
 use strict;
+#use warnings; FIXME - Bug 2505
 
 use C4::Debug;
 use C4::Context;
index 994f846..78666e9 100644 (file)
@@ -18,7 +18,7 @@ package C4::Auth_with_ldap;
 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
 use strict;
-# use warnings; almost?
+#use warnings; FIXME - Bug 2505
 use Digest::MD5 qw(md5_base64);
 
 use C4::Debug;
index f0f2d05..a3eef69 100644 (file)
@@ -17,6 +17,7 @@ package C4::AuthoritiesMarc;
 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
 use strict;
+#use warnings; FIXME - Bug 2505
 use C4::Context;
 use C4::Koha;
 use MARC::Record;
index 1375369..dd3f0f8 100644 (file)
@@ -18,6 +18,7 @@ package C4::AuthoritiesMarc::MARC21;
 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
 use strict;
+#use warnings; FIXME - Bug 2505
 use MARC::Record;
 our $VERSION = 3.00;
 
index 87f6743..5df70e6 100644 (file)
@@ -18,6 +18,7 @@ package C4::AuthoritiesMarc::UNIMARC;
 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
 use strict;
+#use warnings; FIXME - Bug 2505
 our $VERSION = 3.00;
 
 =head1 NAME
index 6d5bfea..e20eb6e 100644 (file)
@@ -19,6 +19,7 @@ package C4::BackgroundJob;
 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
 use strict;
+#use warnings; FIXME - Bug 2505
 use C4::Context;
 use C4::Auth qw/get_session/;
 use Digest::MD5;
index d90cd96..183d4e4 100644 (file)
@@ -16,6 +16,7 @@ package C4::Barcodes::PrinterConfig;
 # Suite 330, Boston, MA  02111-1307 USA
 
 use strict;
+#use warnings; FIXME - Bug 2505
 use vars qw($VERSION @EXPORT);
 
 use PDF::API2;
index 361039f..bdc4346 100644 (file)
@@ -18,6 +18,7 @@ package C4::Bookseller;
 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
 use strict;
+#use warnings; FIXME - Bug 2505
 
 use vars qw($VERSION @ISA @EXPORT);
 
index 103a14d..03d5824 100644 (file)
@@ -17,6 +17,7 @@ package C4::Branch;
 
 
 use strict;
+#use warnings; FIXME - Bug 2505
 require Exporter;
 use C4::Context;
 use C4::Koha;
index eb97615..eeb9b0c 100644 (file)
@@ -18,6 +18,7 @@ package C4::Budgets;
 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
 use strict;
+#use warnings; FIXME - Bug 2505
 use C4::Context;
 use C4::Dates qw(format_date format_date_in_iso);
 use C4::SQLHelper qw<:all>;
index d780189..00b11ef 100644 (file)
@@ -19,7 +19,7 @@ package C4::Circulation;
 
 
 use strict;
-#use warnings;  # soon!
+#use warnings; FIXME - Bug 2505
 use C4::Context;
 use C4::Stats;
 use C4::Reserves;
index 0f202c0..2fd54e7 100644 (file)
@@ -18,6 +18,7 @@ package C4::Contract;
 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
 use strict;
+#use warnings; FIXME - Bug 2505
 use C4::SQLHelper qw(:all);
 
 use vars qw($VERSION @ISA @EXPORT);
index 2ff1499..07ce2eb 100644 (file)
--- a/C4/Csv.pm
+++ b/C4/Csv.pm
@@ -19,6 +19,9 @@ package C4::Csv;
 #
 #
 
+#use strict;
+#use warnings; FIXME - Bug 2505
+
 use C4::Context;
 use vars qw($VERSION @ISA @EXPORT);
 
index 0a23f94..ae1a0d0 100644 (file)
@@ -18,6 +18,7 @@ package C4::Heading;
 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
 use strict;
+#use warnings; FIXME - Bug 2505
 use MARC::Record;
 use MARC::Field;
 use C4::Context;
index 1ff2c60..a057e51 100644 (file)
@@ -18,6 +18,7 @@ package C4::Heading::MARC21;
 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
 use strict;
+#use warnings; FIXME - Bug 2505
 use MARC::Record;
 use MARC::Field;
 
index addb5c8..b3d798e 100644 (file)
@@ -18,6 +18,7 @@ package C4::Installer;
 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
 use strict;
+#use warnings; FIXME - Bug 2505
 
 our $VERSION = 3.00;
 use C4::Context;
index cd6f7d0..7f31cdc 100644 (file)
@@ -18,6 +18,7 @@ package C4::Items;
 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
 use strict;
+#use warnings; FIXME - Bug 2505
 
 use Carp;
 use C4::Context;
index cc72f35..11c7850 100644 (file)
@@ -19,6 +19,7 @@ package C4::Koha;
 
 
 use strict;
+#use warnings; FIXME - Bug 2505
 use C4::Context;
 use C4::Output;
 use URI::Split qw(uri_split);
index 21dd6e8..9ef2439 100644 (file)
@@ -20,7 +20,7 @@ package C4::Languages;
 
 
 use strict; 
-#use warnings;   #FIXME: turn off warnings before release
+#use warnings; FIXME - Bug 2505
 use Carp;
 use C4::Context;
 use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS $DEBUG);
index 4a36353..33d6483 100644 (file)
@@ -21,6 +21,7 @@ package C4::Maintainance; #assumes C4/Maintainance
 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
 use strict;
+#use warnings; FIXME - Bug 2505
 use C4::Context;
 
 require Exporter;
index dfa41e5..4f79e3e 100644 (file)
@@ -19,6 +19,7 @@ package C4::Members;
 
 
 use strict;
+#use warnings; FIXME - Bug 2505
 use C4::Context;
 use C4::Dates qw(format_date_in_iso);
 use Digest::MD5 qw(md5_base64);
index 389b148..0506e23 100644 (file)
@@ -18,6 +18,7 @@ package C4::Members::AttributeTypes;
 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
 use strict;
+#use warnings; FIXME - Bug 2505
 use C4::Context;
 
 use vars qw($VERSION);
index 1c31558..61e79c6 100644 (file)
@@ -26,6 +26,7 @@ package C4::Output;
 # templates.
 
 use strict;
+#use warnings; FIXME - Bug 2505
 
 use C4::Context;
 use C4::Languages qw(getTranslatedLanguages get_bidi regex_lang_subtags language_get_description accept_language );
index 5c9bde8..7f59b9b 100644 (file)
@@ -19,6 +19,7 @@ package C4::Overdues;
 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
 use strict;
+#use warnings; FIXME - Bug 2505
 use Date::Calc qw/Today Date_to_Days/;
 use Date::Manip qw/UnixDate/;
 use C4::Circulation;
index 35bd8b5..674f220 100644 (file)
@@ -18,6 +18,7 @@ package C4::Print;
 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
 use strict;
+#use warnings; FIXME - Bug 2505
 use C4::Context;
 use C4::Circulation;
 use C4::Members;
index 8dd073b..233fa6e 100644 (file)
@@ -19,7 +19,8 @@ package C4::Record;
 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 #
 #
-use strict;# use warnings; #FIXME: turn off warnings before release
+use strict;
+#use warnings; FIXME - Bug 2505
 
 # please specify in which methods a given module is used
 use MARC::Record; # marc2marcxml, marcxml2marc, html2marc, changeEncoding
index 2777d0e..ab23f19 100644 (file)
@@ -18,6 +18,7 @@ package C4::Reports;
 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
 use strict;
+#use warnings; FIXME - Bug 2505
 use CGI;
 
 use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS);
index da34657..5cdad46 100644 (file)
@@ -18,7 +18,7 @@ package C4::Reports::Guided;
 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
 use strict;
-# use warnings;  # FIXME: this module needs a lot of repair to run clean under warnings
+#use warnings; FIXME - Bug 2505 this module needs a lot of repair to run clean under warnings
 use CGI;
 use Carp;
 
index fee4fce..464b3f3 100644 (file)
@@ -21,7 +21,7 @@ package C4::Reserves;
 
 
 use strict;
-# use warnings;  # FIXME: someday
+#use warnings; FIXME - Bug 2505
 use C4::Context;
 use C4::Biblio;
 use C4::Members;
index d3026c0..c5c4806 100644 (file)
--- a/C4/Ris.pm
+++ b/C4/Ris.pm
@@ -57,6 +57,8 @@ package C4::Ris;
 #
 #
 
+#use strict;
+#use warnings; FIXME - Bug 2505
 
 use vars qw($VERSION @ISA @EXPORT);
 
index 83fc6e0..6b1383f 100644 (file)
@@ -23,6 +23,7 @@ package C4::RotatingCollections;
 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
 use strict;
+#use warnings; FIXME - Bug 2505
 
 require Exporter;
 
index f4230a2..8cb6d19 100644 (file)
@@ -18,6 +18,7 @@ package C4::Scheduler;
 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
 use strict;
+#use warnings; FIXME - Bug 2505
 
 use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS);
 use C4::Context;
index 554174c..7b0b408 100644 (file)
@@ -16,7 +16,7 @@ package C4::Search;
 # Suite 330, Boston, MA  02111-1307 USA
 
 use strict;
-# use warnings; # FIXME
+#use warnings; FIXME - Bug 2505
 require Exporter;
 use C4::Context;
 use C4::Biblio;    # GetMarcFromKohaField, GetBiblioData
index b12a2f7..bf786bc 100644 (file)
@@ -18,6 +18,7 @@ package C4::Search::PazPar2;
 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
 use strict;
+#use warnings; FIXME - Bug 2505
 
 use LWP::UserAgent;
 use URI;
index 9b1bc0f..e41db5e 100644 (file)
@@ -18,6 +18,7 @@ package C4::Frequency;
 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
 use strict;
+#use warnings; FIXME - Bug 2505
 use C4::Context;
 use C4::SQLHelper qw<:all>;
 use C4::Debug;
index 9425d3e..88e6def 100644 (file)
@@ -18,6 +18,7 @@ package C4::Numberpattern;
 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
 use strict;
+#use warnings; FIXME - Bug 2505
 use C4::Context;
 use C4::SQLHelper qw<:all>;
 use C4::Debug;
index 2f7bd07..7c283f1 100644 (file)
@@ -19,6 +19,7 @@ package C4::Suggestions;
 
 
 use strict;
+#use warnings; FIXME - Bug 2505
 use CGI;
 
 use C4::Context;
index 11fdef3..3329936 100644 (file)
@@ -19,6 +19,7 @@ package C4::UploadedFile;
 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
 use strict;
+#use warnings; FIXME - Bug 2505
 use C4::Context;
 use C4::Auth qw/get_session/;
 use IO::File;
index 8175e08..aa9687c 100644 (file)
@@ -27,6 +27,7 @@ use LWP::UserAgent;
 use HTTP::Request::Common;
 
 use strict;
+#use warnings; FIXME - Bug 2505
 use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS);
 
 BEGIN {
index c0d7fe0..2ac1460 100644 (file)
@@ -25,6 +25,7 @@ package C4::Z3950;
 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
 use strict;
+#use warnings; FIXME - Bug 2505
 
 # standard or CPAN modules used
 use DBI;
index 5aaf929..f84f338 100644 (file)
@@ -18,6 +18,7 @@ package install_misc::UpgradeBackup;
 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
 use strict;
+#use warnings; FIXME - Bug 2505
 use File::Compare qw(compare);
 use Cwd qw(cwd);
 use File::Copy;
index 4d56596..3a55b21 100644 (file)
@@ -21,6 +21,7 @@ package InstallAuth;
 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
 use strict;
+#use warnings; FIXME - Bug 2505
 use Digest::MD5 qw(md5_base64);
 
 require Exporter;
index 0a54d0b..cb883b4 100644 (file)
@@ -1,6 +1,7 @@
 package TmplToken;
 
 use strict;
+#use warnings; FIXME - Bug 2505
 use TmplTokenType;
 require Exporter;
 
index 75d4f52..217cfbb 100644 (file)
@@ -1,6 +1,7 @@
 package TmplTokenType;
 
 use strict;
+#use warnings; FIXME - Bug 2505
 require Exporter;
 
 use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS);
index 919a5d4..838a59f 100644 (file)
@@ -1,6 +1,7 @@
 package TmplTokenizer;
 
 use strict;
+#use warnings; FIXME - Bug 2505
 use TmplTokenType;
 use TmplToken;
 use VerboseWarnings qw( pedantic_p error_normal warn_normal warn_pedantic );
index 05fd9e5..e2d57dd 100644 (file)
@@ -1,6 +1,7 @@
 package VerboseWarnings;
 
 use strict;
+#use warnings; FIXME - Bug 2505
 require Exporter;
 
 use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS);