Hello,
DBI 1.644 fails to compile with gcc 14.2.1 and perl 5.38.2:
…
DBI.xs: In function ‘dbi_ima_free’:
DBI.xs:250:46: warning: unused parameter ‘mg’ [-Wunused-parameter]
250 | static int dbi_ima_free(pTHX_ SV* sv, MAGIC* mg)
| ~~~~~~~^~
In file included from
/usr/local/lib/perl5/5.38.2/x86_64-linux-thread-multi-ld/CORE/perl.h:6227:
DBI.xs: In function ‘dbih_inner’:
/usr/local/lib/perl5/5.38.2/x86_64-linux-thread-multi-ld/CORE/hv.h:541:31:
error: passing argument 2 of ‘Perl_hv_common_key_len’ from in compatible
pointer type [-Wincompatible-pointer-types]
541 | ((SV**) hv_common_key_len((hv), (key), (klen), (lval)
\
| ^~~~
| |
| SV * {aka struct sv *}
/usr/local/lib/perl5/5.38.2/x86_64-linux-thread-multi-ld/CORE/embed.h:293:78:
note: in definition of macro ‘hv_common_key_len’
293 | # define hv_common_key_len(a,b,c,d,e,f)
Perl_hv_common_key_len(aTHX_ a,b,c,d,e,f)
|
^
While the error message is ‘argument 2", the ^~~~ points to the first argument
of hv_common_hey_len (and to the second of Perl_hv_common_key_len)
Kind regards
Dilyan