Ever since I realized many years ago, that this doesn\'t produce an error by default (in GCC at least), I\'ve always wondered why?
I understand that you can issue co
Sounds like you need to turn up your compiler warnings:
$ gcc -Wall -Wextra -Werror -x c -
int main(void) { return; }
cc1: warnings being treated as errors
: In function ‘main’:
:1: warning: ‘return’ with no value, in function returning non-void
:1: warning: control reaches end of non-void function
$