On Wed, Apr 3, 2024, at 1:01 PM, Petr Vorel wrote: > Although -Wmain-return-type is not considered as error (unlike > -Wimplicit-int on gcc 14 and clang 16), but just a warning, let's fix it > for the future. > > <stdin>:1:1: warning: return type of 'main' is not 'int' [-Wmain-return-type]
I agree we should make this change, but... > - main() > + int main() please *don't* put the return type on the same line as the function name, and change the argument list to `(void)` while you're touching this. We want the end result to be int main (void) > - int > - main () > + int main () same here zw