Y
Hacker News
new
|
ask
|
show
|
jobs
by
kevinoid
1697 days ago
To clarify, gcc -Wall only produces the warning with -std=c89/gnu89 (or GCC < 5 without -std=c99/gnu99). As with clang, it implements the implicit `return 0;` for C99 and later. Example:
https://godbolt.org/z/Y7Wx5Y89q