From 0564b0c7c98cac0e07f04f8d9e026d9f033fd012 Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Mon, 14 Feb 2022 19:42:55 +0100 Subject: [PATCH] rules.pl: Add workaround to hide a warning about an only once used variable. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stefan Schantl Reviewed-by: Peter Müller --- config/firewall/rules.pl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/firewall/rules.pl b/config/firewall/rules.pl index 162781f7ac..c0878059a5 100644 --- a/config/firewall/rules.pl +++ b/config/firewall/rules.pl @@ -109,6 +109,10 @@ my $POLICY_INPUT_ACTION = $fwoptions{"FWPOLICY2"}; my $POLICY_FORWARD_ACTION = $fwoptions{"FWPOLICY"}; my $POLICY_OUTPUT_ACTION = $fwoptions{"FWPOLICY1"}; +#workaround to suppress a warning when a variable is used only once +my @dummy = ( $Location::Functions::ipset_db_directory ); +undef (@dummy); + # MAIN &main(); -- 2.39.5