On Fri, 25 Aug 2017, Mateusz Mikuła wrote:

No problem, it was left forgotten there.

Yes I was making clang able to host itself at MSYS2 and ran into this
error on 64bit builds. If Lio says C-style cast is fine then I'm OK with
that.

I'm 80% sure I've seen this in another project as well and GCC allowed
it but your description is better and this patch should be committed.
You can add my sign-off if you want but it's not important.

Thanks - will push with your sign-off.

I checked again, and it seems like GCC vs Clang might also have some effect - there are multiple overloads with and without const in this scenario. If I strip it down to just plain the differing const with one single version of wcschr, both GCC and Clang fail in the same way though.

// Martin
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to