On Sun, 15 Sep 2024, Pali Rohár wrote: > Hello, Since recent commit 4cf86b87928c6653612238c1240bf8cb1a697e7e > ("crt/libsrc: Enable scrnsave code") gcc started throwing new compile > warnings during compilation of mingw-w64: > > libsrc/scrnsave.c: In function ‘WinMain’: > libsrc/scrnsave.c:130:23: warning: cast to pointer from integer of different > size [-Wint-to-pointer-cast] > hParent = (HWND) (unsigned long long)_toul(p); > ^ > libsrc/scrnsave.c:148:23: warning: cast to pointer from integer of different > size [-Wint-to-pointer-cast] > hParent = (HWND) (unsigned long long) _toul(p); > ^
Perhaps ULongToHandle(_toul(p)) ? _______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public