Use of deprecated `Perl_dowantarray`
Closed this issue · 1 comments
dveeden commented
DBD::mysql version
No response
MySQL client version
No response
Server version
No response
Operating system version
No response
What happened?
./mysql.xsi: In function ‘XS_DBD__mysql__db_selectrow_arrayref’:
./mysql.xsi:234:9: warning: ‘Perl_dowantarray’ is deprecated [-Wdeprecated-declarations]
234 | if (GIMME == G_SCALAR)
| ^~
In file included from /usr/lib64/perl5/CORE/perl.h:6188,
from /usr/lib64/perl5/vendor_perl/auto/DBI/DBIXS.h:23,
from dbdimp.h:20,
from mysql.xs:12:
/usr/lib64/perl5/CORE/proto.h:1019:1: note: declared here
1019 | Perl_dowantarray(pTHX)
| ^~~~~~~~~~~~~~~~
./mysql.xsi:240:9: warning: ‘Perl_dowantarray’ is deprecated [-Wdeprecated-declarations]
240 | if (GIMME == G_SCALAR)
| ^~
/usr/lib64/perl5/CORE/proto.h:1019:1: note: declared here
1019 | Perl_dowantarray(pTHX)
| ^~~~~~~~~~~~~~~~
From https://perldoc.perl.org/perl5380delta
"The underlying Perl_dowantarray function implementing the long-deprecated GIMME macro has been marked as deprecated, so that use of the macro emits a compile-time warning. GIMME has been documented as deprecated in favour of GIMME_V since Perl v5.6.0, but had not previously issued a warning."
Other information
No response
dveeden commented
Closing this as this is fixed upstream