Unverified Commit 651e04c4 authored by Marcel Raad's avatar Marcel Raad
Browse files

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.
parent 0feb762f
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -121,11 +121,11 @@ if2ip_result_t Curl_if2ip(int af, unsigned int remote_scope,


#ifndef ENABLE_IPV6
#ifndef ENABLE_IPV6
  (void) remote_scope;
  (void) remote_scope;

#ifndef HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID
  (void) remote_scope_id;
#endif
#endif


#if !defined(HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID) || \
    !defined(ENABLE_IPV6)
  (void) remote_scope_id;
#endif
#endif


  if(getifaddrs(&head) >= 0) {
  if(getifaddrs(&head) >= 0) {