That was a very long message, but I think it boils down to "it's wrong to compile a C99 program with a C23 compiler". I stand by my statement that a program written in CNN should, as part of its configure (or whatever) probe for and add --std=cNN to CFLAGS, whether NN is old, normal, or new.