From: Stefan Schantl Date: Sat, 12 Feb 2022 14:24:52 +0000 (+0100) Subject: rules.pl: Add workaround to hide a warning about an only once used X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=73eee2f2f5aafa4997b3423f770d05308f63106f;p=people%2Fstevee%2Fipfire-2.x.git rules.pl: Add workaround to hide a warning about an only once used variable. Signed-off-by: Stefan Schantl --- 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();