Build issue with medfile and gcc-15

I am updating med-4.1.1 to med-5.0.0 in Gentoo Linux, but we get some errors with gcc version 15 [1] for both medfile 4.1.1 and 5.0.0.

Currently we temporarily fix it by adding

 CFLAGS="${CFLAGS} -std=gnu17"

If there would be a git repository for medfile I’d be happy to try to submit a patch.

Best,
APN

[1] 943874 – =sci-libs/med-4.1.1-r3 fails with c23/gcc-15.0.0_pre20241117: _MEDiterate.c:35:63: error: passing argument 5 of ‘H5Literate1’ from incompatible pointer type

Hi,
Please attach the patch directly to this artifact. We’ll then forward it to the relevant team.
Regards