From b1597f879c0e897c7bf9fdb256d178857055c61e Mon Sep 17 00:00:00 2001 From: Matthias Fischer Date: Sat, 28 Feb 2015 11:57:33 +0100 Subject: [PATCH] guardian.cgi: Suppress warnings for ${Header::colourgreen} variable. Reference #10748. Signed-off-by: Stefan Schantl --- html/cgi-bin/guardian.cgi | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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=(); -- 2.39.2