From: Ralf Habacker Date: Mon, 29 Nov 2021 09:49:21 +0000 (+0100) Subject: Fix MinGW build error: cast between incompatible function types from 'FARPROC' [... X-Git-Tag: dbus-1.13.20~20^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=63f65307508a82e64d78453ddba8acf7715e8f07;p=thirdparty%2Fdbus.git Fix MinGW build error: cast between incompatible function types from 'FARPROC' [-Werror=cast-function-type]' The build error occurred in 'dbus/dbus-sysdeps-win.c:129:43: Fixes #355 --- diff --git a/dbus/dbus-sysdeps-win.c b/dbus/dbus-sysdeps-win.c index 32126bbc8..e9de93400 100644 --- a/dbus/dbus-sysdeps-win.c +++ b/dbus/dbus-sysdeps-win.c @@ -126,7 +126,7 @@ load_ex_ip_helper_procedures(void) return FALSE; } - lpfnAllocateAndGetTcpExTableFromStack = (ProcAllocateAndGetTcpExtTableFromStack)GetProcAddress (hModule, "AllocateAndGetTcpExTableFromStack"); + lpfnAllocateAndGetTcpExTableFromStack = (ProcAllocateAndGetTcpExtTableFromStack) (void (*)(void))GetProcAddress (hModule, "AllocateAndGetTcpExTableFromStack"); if (lpfnAllocateAndGetTcpExTableFromStack == NULL) { _dbus_verbose ("could not find function AllocateAndGetTcpExTableFromStack in iphlpapi.dll\n");