[HACKERS] Silence perl warning in check-world

Поиск
Список
Период
Сортировка
Искать

[HACKERS] Silence perl warning in check-world

От:
Jeff Janes <jeff.janes@gmail.com>
Дата:
Вложения:
In some older versions of perl (like v5.10), I get a warning that:

Use of implicit split to @_ is deprecated at src/test/recovery/t/006_logical_decoding.pl line 26.

Splitting into a dummy variable silences that warning, as in the attached.  There may be a better way to silence the warning.  (Presumably it actually is clobbering @_ in those older versions of Perl, but that doesn't seem to cause problems in this particular case.)

Cheers,

Jeff


Re: [HACKERS] Silence perl warning in check-world

От:
Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Дата:
On 3/13/17 16:51, Jeff Janes wrote:
> In some older versions of perl (like v5.10), I get a warning that:
> 
> Use of implicit split to @_ is deprecated at
> src/test/recovery/t/006_logical_decoding.pl
>  line 26.
> 
> Splitting into a dummy variable silences that warning, as in the
> attached.  There may be a better way to silence the warning.
>  (Presumably it actually is clobbering @_ in those older versions of
> Perl, but that doesn't seem to cause problems in this particular case.)

committed

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


FAQ