https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124207
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #4) > Note the warning at -O2 seems like a GCC 16 regression; I have not looked > into why yet. But that might be inlining differences. because removing the definition of main, GCC 12+ warns then.
