[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
- [GNUnet-SVN] [gnurl] 112/208: runtests: support "threaded-resolver" as a feature, (continued)
- [GNUnet-SVN] [gnurl] 112/208: runtests: support "threaded-resolver" as a feature, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 123/208: travis: add SMB, DICT, TELNET torture to coverage test, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 106/208: TODO: 1.10 auto-detect proxy, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 117/208: memdebug: don't setbuf() if the file open failed, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 81/208: handler: refactor connection checking, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 130/208: tool_getparam: fix potentially uninitialized err, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 78/208: curl_strequal.3: fix typo in SYNOPSIS, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 89/208: unit1399: fix integer overflow, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 77/208: RELEASE-NOTES: synced with ce2c3ebda, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 80/208: openssl: improve fallback seed of PRNG with a time based hash, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 52/208: if2ip: fix compiler warning in ISO C90 mode,
gnunet <=
- [GNUnet-SVN] [gnurl] 76/208: curl --socks5-{basic, gssapi}: control socks5 auth, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 82/208: http2: handle PING frames, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 57/208: lib1521: fix missing-variable-declarations clang warnings, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 88/208: cmake: Added compatibility options for older Windows versions, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 100/208: smb: fix build for djgpp/MSDOS, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 105/208: TODO: HTTP proxy CONNECT is non-blocking now, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 91/208: url: make the original string get used on subsequent transfers, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 119/208: travis: do more tests in the coverage run, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 122/208: cmake: offer CMAKE_DEBUG_POSTFIX when building with MSVC, gnunet, 2017/08/09
- [GNUnet-SVN] [gnurl] 108/208: select.h: avoid macro redefinition harder, gnunet, 2017/08/09