if2ip.c: Fixed another warning: unused parameter 'remote_scope'
authorMarc Hoersken <info@marc-hoersken.de>
Sun, 7 Apr 2013 19:04:39 +0000 (21:04 +0200)
committerMarc Hoersken <info@marc-hoersken.de>
Sun, 7 Apr 2013 19:04:50 +0000 (21:04 +0200)
lib/if2ip.c

index 43584c75cd82a44b1c9683a53ecf1f718fde1ad3..a2bad871af5e11540eeef17bb9ce4ee776b1465f 100644 (file)
@@ -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) {