Is it not possible to disable this kind of warning entirely? It is a stupid idea. Does declaring the variable as some sort of constant help? -Michael > On 14 Feb 2022, at 18:42, Stefan Schantl wrote: > > Signed-off-by: Stefan Schantl > --- > config/firewall/rules.pl | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/config/firewall/rules.pl b/config/firewall/rules.pl > index 162781f7a..c0878059a 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.30.2 >