From: Stefan Schantl Date: Mon, 14 Feb 2022 18:42:55 +0000 (+0100) Subject: rules.pl: Add workaround to hide a warning about an only once used variable. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0564b0c7c98cac0e07f04f8d9e026d9f033fd012;p=people%2Fms%2Fipfire-2.x.git rules.pl: Add workaround to hide a warning about an only once used variable. Signed-off-by: Stefan Schantl Reviewed-by: Peter Müller --- 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();