diff options
author | teor <teor@torproject.org> | 2018-09-06 13:11:23 +1000 |
---|---|---|
committer | teor <teor@torproject.org> | 2018-09-07 11:03:10 +1000 |
commit | 1570f17f97ad99ddf3f63745ab3571c1aa411141 (patch) | |
tree | a7828f3180339cda3fa16f127a9dc860c198a51a /changes | |
parent | ff1486385aed1172c18a8a593dec2684de891f60 (diff) | |
download | tor-1570f17f97ad99ddf3f63745ab3571c1aa411141.tar.gz tor-1570f17f97ad99ddf3f63745ab3571c1aa411141.zip |
Windows: Silence a spurious warning in the GetAdaptersAddresses cast
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.
Diffstat (limited to 'changes')
-rw-r--r-- | changes/bug27465 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/changes/bug27465 b/changes/bug27465 new file mode 100644 index 0000000000..743b35130f --- /dev/null +++ b/changes/bug27465 @@ -0,0 +1,5 @@ + 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. |