Skip to content

Commit ab7ca8f

Browse files
committed
fixup! mingw: allow compiling with GCC 8 and DEVELOPER=1
It is actually illegal to case between function and data pointers, and it is fascinating that GCC allows that, but MSVC complains about that when we let it be strict. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 77f8698 commit ab7ca8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compat/poll/poll.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ win32_compute_revents (HANDLE h, int *p_sought)
149149
case FILE_TYPE_PIPE:
150150
if (!once_only)
151151
{
152-
NtQueryInformationFile = (PNtQueryInformationFile)(void *)
152+
NtQueryInformationFile = (PNtQueryInformationFile)(void (*)(void))
153153
GetProcAddress (GetModuleHandleA ("ntdll.dll"),
154154
"NtQueryInformationFile");
155155
once_only = TRUE;

0 commit comments

Comments
 (0)