mirror of
https://github.com/curl/curl.git
synced 2026-07-28 03:13:16 +03:00
if2ip.c: Fixed another warning: unused parameter 'remote_scope'
This commit is contained in:
parent
762961fe35
commit
6b8c36954f
1 changed files with 4 additions and 0 deletions
|
|
@ -89,6 +89,10 @@ if2ip_result_t Curl_if2ip(int af, unsigned int remote_scope,
|
|||
struct ifaddrs *iface, *head;
|
||||
if2ip_result_t res = IF2IP_NOT_FOUND;
|
||||
|
||||
#ifndef ENABLE_IPV6
|
||||
(void) remote_scope;
|
||||
#endif
|
||||
|
||||
if(getifaddrs(&head) >= 0) {
|
||||
for(iface=head; iface != NULL; iface=iface->ifa_next) {
|
||||
if(iface->ifa_addr != NULL) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue