Silence perl warning in check-world

Started by Jeff Janesabout 9 years ago2 messageshackers
Jump to latest
#1Jeff 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

Attachments:

silence_perl_warning.patchapplication/octet-stream; name=silence_perl_warning.patchDownload+1-1
#2Peter Eisentraut
peter_e@gmx.net
In reply to: Jeff Janes (#1)
Re: Silence perl warning in check-world

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
<http://006_logical_decoding.pl&gt; 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

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers