在 2024-09-18 22:07, Jacek Caban 写道:
If it's just about -Wpedantic, I think we could just ignore it. For crt, we control default flags and if user explicitly specifies flags like that, a warning is not the worst thing to get... (It would be different for headers, that may be exposed to any user configuration, but the concern here is just about crt).

I agree with this.

Maybe, but in practice it's pretty well defined behavior.

Yes; my suggestion about casting via `intptr_t` also just happens to work in 
practice.

So far there are two compilers which are known to warn sometimes about conversion between a function pointer and `void*`, but no compiler is known to warn about conversion between a function pointer and `intptr_t`, so the latter should be a win, isn't it?


--
Best regards,
LIU Hao

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to