https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119180
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- >with -pedantic warns but still succeeds You need -pedantic-errors.
pinskia at gcc dot gnu.org via Gcc-bugs Sun, 09 Mar 2025 22:29:02 -0700
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119180
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- >with -pedantic warns but still succeeds You need -pedantic-errors.