https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115107
--- Comment #11 from Jakub Jelinek <jakub at gcc dot gnu.org> --- You want to fix the code as described in e.g. https://gcc.gnu.org/gcc-14/porting_to.html , not find workarounds. The code was apparently never valid C99+.