https://bugs.winehq.org/show_bug.cgi?id=56894
Bug ID: 56894 Summary: Compile Error Product: Wine-staging Version: 9.12 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: critical Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: 0rtjiosoi3@pirolsnet.com CC: leslie_alistair@hotmail.com, z.figura12@gmail.com Distribution: ---
When I compiled the wine-staging, I taken the following error;
include/config.h:847:9: warning: "_GNU_SOURCE" redefined
dlls/ntdll/unix/esync.c:183:38: error: passing argument 1 of ‘_InterlockedCompareExchange’ from incompatible pointer type [-Wincompatible-pointer-types] 183 | if (!InterlockedCompareExchange( (int *)&esync_list[entry][idx].type, type, 0 )) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int *
dlls/ntdll/unix/esync.c:256:14: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 6 has type ‘NTSTATUS’ {aka ‘long int’} [-Wformat=] 256 | WARN("Failed to retrieve fd for handle %p, status %#x.\n", handle, ret); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~ | | | NTSTATUS {aka long int}
dlls/ntdll/unix/esync.c:275:33: error: passing argument 1 of ‘_InterlockedExchange’ from incompatible pointer type [-Wincompatible-pointer-types] 275 | if (InterlockedExchange((int *)&esync_list[entry][idx].type, 0)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int *
dlls/ntdll/unix/esync.c:939:51: error: passing argument 1 of ‘_InterlockedDecrement’ from incompatible pointer type [-Wincompatible-pointer-types] 939 | InterlockedDecrement( &semaphore->count ); | ^~~~~~~~~~~~~~~~~ | | | int *