Comment
Comment by comex
If you use GCC, enable -Wall and you'll get the diagnostic you want:
If you use Clang, there is no diagnostic even with -Wall (or even -Weverything), but it looks like Clang always implements the implicit `return 0;` from C99 regardless of the `-std` setting.