[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
- Duplicate variable use in Texinfo/ManipulateTree.pm, Gavin Smith, 2025/06/04
- Re: Duplicate variable use in Texinfo/ManipulateTree.pm,
Patrice Dumas <=
- Re: Duplicate variable use in Texinfo/ManipulateTree.pm, Gavin Smith, 2025/06/05
- Re: Duplicate variable use in Texinfo/ManipulateTree.pm, Patrice Dumas, 2025/06/05
- HV and SV problem, Gavin Smith, 2025/06/06
- Re: HV and SV problem, Gavin Smith, 2025/06/06
- Re: HV and SV problem, Gavin Smith, 2025/06/06
- Re: HV and SV problem, Patrice Dumas, 2025/06/07
- Re: HV and SV problem, Patrice Dumas, 2025/06/07
- Re: HV and SV problem, Gavin Smith, 2025/06/07
- Re: HV and SV problem, Gavin Smith, 2025/06/07