DBI 1.644 cannot be compiled with gcc 14.2.1: dbih_inner()
Dilyan Palauzov via dbi-dev <[email protected]> Thu, 29 Aug 2024 17:23:46 +0300
| Newsgroups | gmane.comp.lang.perl.modules.dbi.sybase.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello,
DBI 1.644 fails to compile with gcc 14.2.1 and perl 5.38.2:
=E2=80=A6
DBI.xs: In function =E2=80=98dbi_ima_free=E2=80=99:=20
DBI.xs:250:46: warning: unused parameter =E2=80=98mg=E2=80=99 [-Wunused-par=
ameter]
250 | static int dbi_ima_free(pTHX_ SV* sv, MAGIC* mg)
| ~~~~~~~^~=20
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 =E2=80=98dbih_inner=E2=80=99:
/usr/local/lib/perl5/5.38.2/x86_64-linux-thread-multi-ld/CORE/hv.h:541:31: =
error: passing argument 2 of =E2=80=98Perl_hv_common_key_len=E2=80=99 from =
in compatible pointer type [-Wincompatible-pointer-types] =
=20
541 | ((SV**) hv_common_key_len((hv), (key), (klen), (lval) =
\
| ^~~~=20
| |
| SV * {aka struct sv *}
/usr/local/lib/perl5/5.38.2/x86_64-linux-thread-multi-ld/CORE/embed.h:293:7=
8: note: in definition of macro =E2=80=98hv_common_key_len=E2=80=99
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 =E2=80=98argument 2", the ^~~~ points to the fir=
st argument of hv_common_hey_len (and to the second of Perl_hv_common_key_l=
en)
Kind regards
Dilyan