https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106929
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- For C17 (and previous standards), if you use -pedantic you'll get a warning, and -pedantic-errors will make it an error.
redi at gcc dot gnu.org via Gcc-bugs Tue, 13 Sep 2022 07:40:19 -0700
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106929
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- For C17 (and previous standards), if you use -pedantic you'll get a warning, and -pedantic-errors will make it an error.