From: Matthias Fischer Date: Sat, 28 Feb 2015 10:57:33 +0000 (+0100) Subject: guardian.cgi: Suppress warnings for ${Header::colourgreen} variable. X-Git-Tag: v2.19-core104~8^2~30 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b1597f879c0e897c7bf9fdb256d178857055c61e;p=ipfire-2.x.git guardian.cgi: Suppress warnings for ${Header::colourgreen} variable. Reference #10748. Signed-off-by: Stefan Schantl --- diff --git a/html/cgi-bin/guardian.cgi b/html/cgi-bin/guardian.cgi index fa7947eb9b..33faf23edd 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=();