bug-texinfo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Duplicate variable use in Texinfo/ManipulateTree.pm


From: Patrice Dumas
Subject: Re: Duplicate variable use in Texinfo/ManipulateTree.pm
Date: Thu, 5 Jun 2025 01:07:51 +0200

On Wed, Jun 04, 2025 at 09:37:20PM +0100, Gavin Smith wrote:
> When I run the texi2any test suite with TEXINFO_XS=omit, there is
> a warning printed:
> 
> "my" variable $current_nr masks earlier declaration in same scope at 
> t//../../perl/Texinfo/ManipulateTree.pm line 839.
> 
> This is presumably a bug.  Here is the relevant part of the code:
> 
> 
> sub print_element_details($$$$;$$)
> {
>   my $element = shift;
>   my $level = shift;
>   my $prepended = shift;
>   my $current_nr = shift;
>   my $fname_encoding = shift;
>   my $use_filename = shift;
> 
>   my ($current_nr, $result)
>       = print_element_base($element, $level, $prepended,
>                            $fname_encoding, $use_filename);

This should be fixed as well as another bug for the tests that I missed
completly.

-- 
Pat



reply via email to

[Prev in Thread] Current Thread [Next in Thread]