> Date: Thu, 8 Jun 2023 20:39:43 +0200 > CC: <bug-make@gnu.org> > From: Torbjorn SVENSSON <torbjorn.svens...@foss.st.com> > > > If you get the error about casting _get_osfhandle to HANDLE only for > > the 32-bit build, and you don't care about that build, then just > > ignore it. But if that error is emitted for the 64-bit build, then > > there's something strange here, since on 64-bit Windows 'long long' > > should be compatible with 'void *'. > > The error is emitted in both builds, but let's ignore 32-bit for now. > Both the errors that I pasted above are emitted using > x86_64-w64-mingw32 and need to have some kind of fix to have a successful > build. > > Any idea what could be done except disabling the warning for the cast.
I'd post to the MinGW64 forum and perhaps also to the GCC list. It sounds like a bogus warning to me, i.e. a bug. The question is: is the bug in GCC itself or in some MinGW64 header files?