在 2024-12-10 06:11, Pali Rohár 写道:
Also the casting from function pointer which returns int to function pointer which returns void sounds like a bug in code.I guess that currently it is working only because the return value on x86 is passed via register and it can be ignored by the caller.
Yes there shouldn't be such a cast.Mostly it's fine, as long as the result is not used. (P12, 6.9.1 Function definitions, ISO/IEC 9899:2017; however it apparently doesn't apply if the function returned `double`.)
-- Best regards, LIU Hao
OpenPGP_signature.asc
Description: OpenPGP digital signature
_______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
