From 003f86fb1f9c7f77f65b851a2ff57617bd9bf277 Mon Sep 17 00:00:00 2001 From: "terry%mozilla.org" <> Date: Tue, 19 Oct 1999 06:57:56 +0000 Subject: Fixed stupid perl warnings. --- CGI.pl | 8 ++++++++ bug_form.pl | 16 ++++++++++++++++ defparams.pl | 9 +++++++++ editcomponents.cgi | 9 +++++++++ globals.pl | 23 +++++++++++++++++++++++ 5 files changed, 65 insertions(+) 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(). -- cgit v1.2.3-24-g4f1b