https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128118
Drea Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |diagnostic
URL|https://godbolt.org/z/Mx5vo |
|aMsa |
--- Comment #1 from Drea Pinski <pinskia at gcc dot gnu.org> ---
<source>:4:20: warning: return type of 'main' is not 'int' [-Wmain]
4 | enum exit_code main() {
| ^~~~
And GCC has a ped warning about it too.
https://godbolt.org/z/Mx5voaMsa