summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-09-07 08:42:19 -0400
committerNick Mathewson <nickm@torproject.org>2018-09-07 08:42:19 -0400
commita08e6e711fbcd6a12818f1fe14739fc0e870434d (patch)
tree0ea19edcdee51cf7029747158eb6c998530932e5 /src
parent57b207efa42e0a2794457cc7aff9c662d9000b44 (diff)
parent1570f17f97ad99ddf3f63745ab3571c1aa411141 (diff)
downloadtor-a08e6e711fbcd6a12818f1fe14739fc0e870434d.tar.gz
tor-a08e6e711fbcd6a12818f1fe14739fc0e870434d.zip
Merge branch 'maint-0.2.9' into maint-0.3.2
Diffstat (limited to 'src')
-rw-r--r--src/common/address.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/common/address.c b/src/common/address.c
index c7aa97bfd1..ef3117aefd 100644
--- a/src/common/address.c
+++ b/src/common/address.c
@@ -1496,7 +1496,10 @@ get_interface_addresses_win32(int severity, sa_family_t family)
goto done;
}
- if (!(fn = (GetAdaptersAddresses_fn_t)
+ /* Cast through a void function pointer, to silence a spurious compiler
+ * warning on 64-bit Windows. This cast is safe, because we are casting to
+ * the correct type for GetAdaptersAddresses(). */
+ if (!(fn = (GetAdaptersAddresses_fn_t)(void(*)(void))
GetProcAddress(lib, "GetAdaptersAddresses"))) {
log_fn(severity, LD_NET, "Unable to obtain pointer to "
"GetAdaptersAddresses");