* Jakub Jelinek:

> So, I guess void main (int) could be ok in some implementations, but I don't
> think that is the case of our.  Florian, didn't you mean
> int
> main (void)
> or
> int
> main ()
> instead?

Exactly, it was a silly mistake.

> Note, I'm using
> int
> main ()
> {
> ...
> }
> in most tests and I hope it should be fine both in the pre-C23 way and in
> C23.

It should remain acceptable.  Some people push for warnings on
int main () { … }, which is why I added the void if I was adding
the return type anyway.  But it seems that warning about that
seems unlikely for GCC at least.

Thanks,
Florian

Reply via email to