Re: perl: fix build with clang 15

2022-12-26 Thread Jeremie Courreges-Anglas
On Mon, Dec 26 2022, Andrew Hewus Fresh wrote: > On Tue, Dec 27, 2022 at 02:22:43AM +0100, Jeremie Courreges-Anglas wrote: >> >> MD5.xs:375:21: error: mixing declarations and code is incompatible with >> standards before C99 [-Werror,-Wdeclaration-after-statement] >> unsigned char *b

Re: perl: fix build with clang 15

2022-12-26 Thread Andrew Hewus Fresh
On Tue, Dec 27, 2022 at 02:22:43AM +0100, Jeremie Courreges-Anglas wrote: > > MD5.xs:375:21: error: mixing declarations and code is incompatible with > standards before C99 [-Werror,-Wdeclaration-after-statement] > unsigned char *buf = (unsigned char *)(SvPV(ST(2), len)); > > The bui

perl: fix build with clang 15

2022-12-26 Thread Jeremie Courreges-Anglas
MD5.xs:375:21: error: mixing declarations and code is incompatible with standards before C99 [-Werror,-Wdeclaration-after-statement] unsigned char *buf = (unsigned char *)(SvPV(ST(2), len)); The build system asks for -Werror *and* -Wdeclaration-after-statement so let's fix the code.