]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Fixed stupid perl warnings.
authorterry%mozilla.org <>
Tue, 19 Oct 1999 06:57:56 +0000 (06:57 +0000)
committerterry%mozilla.org <>
Tue, 19 Oct 1999 06:57:56 +0000 (06:57 +0000)
CGI.pl
bug_form.pl
defparams.pl
editcomponents.cgi
globals.pl

diff --git a/CGI.pl b/CGI.pl
index 2b137168581d721ea92e0f909097c807b26ac4e5..76adcc702a37495fe79a83b1b490a2f1d95d9e4e 100644 (file)
--- a/CGI.pl
+++ b/CGI.pl
 use diagnostics;
 use strict;
 
+# Shut up misguided -w warnings about "used only once".  For some reason,
+# "use vars" chokes on me when I try it here.
+
+sub sillyness {
+    my $zz;
+    $zz = %::FILENAME;
+}
+
 use CGI::Carp qw(fatalsToBrowser);
 
 require 'globals.pl';
index 665d82f62b7eadb3dd50760c1b33e17f61afa623..f1441f54d627de5f8ad5163df040bb553c71f072 100644 (file)
 use diagnostics;
 use strict;
 
+# Shut up misguided -w warnings about "used only once".  For some reason,
+# "use vars" chokes on me when I try it here.
+
+sub bug_form_pl_sillyness {
+    my $zz;
+    $zz = %::FORM;
+    $zz = %::components;
+    $zz = %::prodmaxvotes;
+    $zz = %::versions;
+    $zz = @::legal_opsys;
+    $zz = @::legal_platform;
+    $zz = @::legal_product;
+    $zz = @::legal_priority;
+    $zz = @::legal_resolution_no_dup;
+    $zz = @::legal_severity;
+}
 
 my %knownattachments;
 
index 56a63cf6de8a39b3887ae31abb4b6119a7f30fa2..388c4139d4bd75046fc17034e8665036de33f091 100644 (file)
 use diagnostics;
 use strict;
 
+# Shut up misguided -w warnings about "used only once".  For some reason,
+# "use vars" chokes on me when I try it here.
+
+sub bug_form_pl_sillyness {
+    my $zz;
+    $zz = %::param_checker;
+    $zz = %::param_desc;
+    $zz = %::param_type;
+}
 
 sub WriteParams {
     foreach my $i (@::param_list) {
index 371c27b72d9a0f5bd24fb8a7f881defc62321aa5..322cd2c27590e2e20df51d6d2afcc229407700a5 100755 (executable)
@@ -22,6 +22,15 @@ use strict;
 require "CGI.pl";
 require "globals.pl";
 
+# Shut up misguided -w warnings about "used only once".  For some reason,
+# "use vars" chokes on me when I try it here.
+
+sub sillyness {
+    my $zz;
+    $zz = $::buffer;
+}
+
+
 my $dobugcounts = (defined $::FORM{'dobugcounts'});
 
 
index 2f915ca5fea541f7b824c697d2c6d106c361f870..c1da2e828ee0ebbdc876068207af79ada4836c8f 100644 (file)
 
 use diagnostics;
 use strict;
+
+# Shut up misguided -w warnings about "used only once".  For some reason,
+# "use vars" chokes on me when I try it here.
+
+sub globals_pl_sillyness {
+    my $zz;
+    $zz = @main::chooseone;
+    $zz = @main::db_errstr;
+    $zz = @main::default_column_list;
+    $zz = @main::dontchange;
+    $zz = @main::legal_bug_status;
+    $zz = @main::legal_components;
+    $zz = @main::legal_opsys;
+    $zz = @main::legal_platform;
+    $zz = @main::legal_priority;
+    $zz = @main::legal_product;
+    $zz = @main::legal_severity;
+    $zz = @main::legal_target_milestone;
+    $zz = @main::legal_versions;
+    $zz = @main::milestoneurl;
+    $zz = @main::prodmaxvotes;
+}
+
 use Mysql;
 
 use Date::Format;               # For time2str().