mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 13:13:44 +01:00
1570f17f97
GetProcAddress() returns FARPROC, which is (long long int(*)()) on 64-bit Windows: https://msdn.microsoft.com/en-us/library/windows/desktop/ms683212(v=vs.85).aspx But GetAdaptersAddresses() is (long unsigned int(*)()), on both 32-bit and 64-bit Windows: https://docs.microsoft.com/en-us/windows/desktop/api/iphlpapi/nf-iphlpapi-getadaptersaddresses So gcc 8 issues a spurious "incompatible function pointer" warning about the cast to GetAdaptersAddresses_fn_t. Silence this warning by casting to a void function pointer, before the cast to GetAdaptersAddresses_fn_t. This issue is already fixed by 26481 in 0.3.5 and later, by removing the lookup and cast. Fixes bug 27465; bugfix on 0.2.3.11-alpha.
6 lines
278 B
Plaintext
6 lines
278 B
Plaintext
o Minor bugfixes (compilation):
|
|
- Silence a spurious compiler warning on the GetAdaptersAddresses
|
|
function pointer cast. This issue is already fixed by 26481 in
|
|
0.3.5 and later, by removing the lookup and cast.
|
|
Fixes bug 27465; bugfix on 0.2.3.11-alpha.
|