gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnurl] 52/208: if2ip: fix compiler warning in ISO C90 mode


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 52/208: if2ip: fix compiler warning in ISO C90 mode
Date: Wed, 09 Aug 2017 17:34:09 +0200

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to annotated tag gnurl-7.55.0
in repository gnurl.

commit 651e04c4c88ae6969be416e4a7a1ffe61d7a67e9
Author: Marcel Raad <address@hidden>
AuthorDate: Tue Jun 20 22:33:56 2017 +0200

    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.
---
 lib/if2ip.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/if2ip.c b/lib/if2ip.c
index 4de81be60..3e74cc687 100644
--- a/lib/if2ip.c
+++ b/lib/if2ip.c
@@ -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) {

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]