From: Matthias Fischer Date: Sat, 28 Feb 2015 10:57:33 +0000 (+0100) Subject: guardian.cgi: Suppress warnings for ${Header::colourgreen} variable. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=82208c83c709da1f1c24fd9396e5d351f833fd91;p=people%2Fstevee%2Fipfire-2.x.git guardian.cgi: Suppress warnings for ${Header::colourgreen} variable. Reference #10748. --- diff --git a/html/cgi-bin/guardian.cgi b/html/cgi-bin/guardian.cgi index ad4f3de717..9345d455b6 100644 --- a/html/cgi-bin/guardian.cgi +++ b/html/cgi-bin/guardian.cgi @@ -31,7 +31,11 @@ require "${General::swroot}/lang.pl"; require "${General::swroot}/header.pl"; #workaround to suppress a warning when a variable is used only once -my @dummy = ( ${Header::colouryellow} ); +my @dummy = ( + ${Header::colourred}, + ${Header::colourgreen} +); + undef (@dummy); my $string=();