mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 15:48:49 -05:00
if2ip: fix compiler warning in ISO C90 mode
remote_scope_id is only used when both HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID and ENABLE_IPV6 are defined instead of only one of them.
This commit is contained in:
parent
0feb762fc0
commit
651e04c4c8
@ -121,11 +121,11 @@ if2ip_result_t Curl_if2ip(int af, unsigned int remote_scope,
|
||||
|
||||
#ifndef ENABLE_IPV6
|
||||
(void) remote_scope;
|
||||
|
||||
#ifndef HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID
|
||||
(void) remote_scope_id;
|
||||
#endif
|
||||
|
||||
#if !defined(HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID) || \
|
||||
!defined(ENABLE_IPV6)
|
||||
(void) remote_scope_id;
|
||||
#endif
|
||||
|
||||
if(getifaddrs(&head) >= 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user