summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorterry%mozilla.org <>1999-10-19 08:57:56 +0200
committerterry%mozilla.org <>1999-10-19 08:57:56 +0200
commit003f86fb1f9c7f77f65b851a2ff57617bd9bf277 (patch)
tree50ab4447e78f8bddde86c47189bb8d43cb4d3568
parent91d8db0df1b0e1465a1f1c13c1e9adb5cf3d9c7b (diff)
downloadbugzilla-003f86fb1f9c7f77f65b851a2ff57617bd9bf277.tar.gz
bugzilla-003f86fb1f9c7f77f65b851a2ff57617bd9bf277.tar.xz
Fixed stupid perl warnings.
-rw-r--r--CGI.pl8
-rw-r--r--bug_form.pl16
-rw-r--r--defparams.pl9
-rwxr-xr-xeditcomponents.cgi9
-rw-r--r--globals.pl23
5 files changed, 65 insertions, 0 deletions
diff --git a/CGI.pl b/CGI.pl
index 2b1371685..76adcc702 100644
--- a/CGI.pl
+++ b/CGI.pl
@@ -23,6 +23,14 @@
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';
diff --git a/bug_form.pl b/bug_form.pl
index 665d82f62..f1441f54d 100644
--- a/bug_form.pl
+++ b/bug_form.pl
@@ -21,6 +21,22 @@
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;
diff --git a/defparams.pl b/defparams.pl
index 56a63cf6d..388c4139d 100644
--- a/defparams.pl
+++ b/defparams.pl
@@ -26,6 +26,15 @@
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) {
diff --git a/editcomponents.cgi b/editcomponents.cgi
index 371c27b72..322cd2c27 100755
--- a/editcomponents.cgi
+++ b/editcomponents.cgi
@@ -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'});
diff --git a/globals.pl b/globals.pl
index 2f915ca5f..c1da2e828 100644
--- a/globals.pl
+++ b/globals.pl
@@ -22,6 +22,29 @@
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().