diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-09-07 08:42:19 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-09-07 08:42:19 -0400 |
commit | 08d5fd39d85d4f7174b52ef5d53db001398481ea (patch) | |
tree | 7da47079912501e3b11fc2c4201999b77522f856 /src/common | |
parent | a7e72f0c44f42145ff39c1ef77fb131c25569732 (diff) | |
parent | a08e6e711fbcd6a12818f1fe14739fc0e870434d (diff) | |
download | tor-08d5fd39d85d4f7174b52ef5d53db001398481ea.tar.gz tor-08d5fd39d85d4f7174b52ef5d53db001398481ea.zip |
Merge branch 'maint-0.3.2' into maint-0.3.3
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/address.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/common/address.c b/src/common/address.c index ecdbbab7b1..5074c1ccf0 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"); |