diff options
author | Ralf Habacker <ralf.habacker@freenet.de> | 2021-11-29 10:49:21 +0100 |
---|---|---|
committer | Simon McVittie <smcv@collabora.com> | 2021-11-29 15:20:10 +0000 |
commit | 63f65307508a82e64d78453ddba8acf7715e8f07 (patch) | |
tree | 6ddd89c60e68f8d2bb5d0c7671d824101ecc526c | |
parent | acb9ca7422306b87cb096510c2fa1616b2f88c58 (diff) | |
download | dbus-63f65307508a82e64d78453ddba8acf7715e8f07.tar.gz |
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
-rw-r--r-- | dbus/dbus-sysdeps-win.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dbus/dbus-sysdeps-win.c b/dbus/dbus-sysdeps-win.c index 32126bbc..e9de9340 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"); |