https://bugs.winehq.org/show_bug.cgi?id=56601
Bug ID: 56601 Summary: Compilation failure on Fedora 40: error: initialization of ... [-Wincompatible-pointer-types] Product: Wine Version: 9.4 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: patrick+winehq.org@laimbock.com Distribution: ---
Created attachment 76357 --> https://bugs.winehq.org/attachment.cgi?id=76357 Compilation failure of Wine 9.4 on Fedora 40
Component: dlls/combase
Building 9.4 on Fedora 39 succeeds while building of 9.4 on Fedora 40 fails.
In file included from include/windef.h:271, from include/windows.h:38, from dlls/combase/string.c:22: dlls/combase/string.c: In function 'impl_from_HSTRING_BUFFER': include/winnt.h:888:46: error: initialization of 'const WCHAR (*)[1]' {aka 'const short unsigned int (*)[1]'} from incompatible pointer type 'HSTRING_BUFFER' {aka 'struct HSTRING_BUFFER__ *'} [-Wincompatible-pointer-types] 888 | const typeof(((type *)0)->field) *__ptr = (address); \ | ^ dlls/combase/string.c:63:12: note: in expansion of macro 'CONTAINING_RECORD' 63 | return CONTAINING_RECORD(buffer, struct hstring_private, buffer); | ^~~~~~~~~~~~~~~~~ make: *** [Makefile:6704: dlls/combase/x86_64-windows/string.o] Error 1
Attached file has more lines.