Omitting return is allowed in main.
>5.1.2.2.3 Program termination [...] reaching the } that terminates the main function returns a value of 0.
And I just looked it up for C. Since C99, if the return type of `main` is `int` and there is no explicit return (or again you fall through to the end without hitting one) there's an implicit `return 0`. Before C99, undefined.