在 2024-04-19 16:00, LIU Hao 写道:
The conversion from `char**` to `const char* const*` is only implicit in C++, and not in C. The POSIX prototypes have only one `const` [1].The Microsoft variants do have double `const` [2], so I think the proposed patch may be acceptable, as long as users have been aware of that.
My second thought is that GCC 14 (not branched yet, but available from https://gcc.godbolt.org/z/E9EnYTG39) starts to reject such conversions. Given that these names are POSIX, I'd prefer we follow POSIX and leave them alone.
BTW, I would like to hear about the issues that they are causing. -- Best regards, LIU Hao
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