On Saturday 19 July 2025 22:14:15 LIU Hao wrote: > 在 2025-7-18 04:08, Pali Rohár 写道: > > Function main is somehow special that it can take from zero to three > > parameters. So define it in internal.h file without parameters. This will > > mute the gcc LTO warning which is printed by default. > > I don't think this is correct. Standard C only allows zero or two > parameters; `int main(int argc)` is not allowed. The `envp` parameter is an > implementation-defined extension.
Yes, that is truth. I looked into C spec. It would be needed to adjust wording. But as mentioned in other emails this change breads c23 compilation of crtexe.c file. So it is cannot be taken in this form. _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
