在 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.





--
Best regards,
LIU Hao

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to