gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [gnurl] 53/153: hostip: fix unused variable warning


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 53/153: hostip: fix unused variable warning
Date: Tue, 11 Sep 2018 12:52:04 +0200

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

ng0 pushed a commit to branch master
in repository gnurl.

commit 81be254870b23d7f276e9a7111ee38c89de7606e
Author: Marcel Raad <address@hidden>
AuthorDate: Thu Aug 2 08:24:27 2018 +0200

    hostip: fix unused variable warning
    
    addresses is only used in an infof call, which is a macro expanding to
    nothing if CURL_DISABLE_VERBOSE_STRINGS is set.
---
 lib/hostip.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lib/hostip.c b/lib/hostip.c
index d809578e1..bc20f7153 100644
--- a/lib/hostip.c
+++ b/lib/hostip.c
@@ -907,7 +907,9 @@ CURLcode Curl_loadhostpairs(struct Curl_easy *data)
       char *entry_id;
       size_t entry_len;
       char address[64];
+#if !defined(CURL_DISABLE_VERBOSE_STRINGS)
       char *addresses = NULL;
+#endif
       char *addr_begin;
       char *addr_end;
       char *port_ptr;
@@ -930,7 +932,9 @@ CURLcode Curl_loadhostpairs(struct Curl_easy *data)
         goto err;
 
       port = (int)tmp_port;
+#if !defined(CURL_DISABLE_VERBOSE_STRINGS)
       addresses = end_ptr + 1;
+#endif
 
       while(*end_ptr) {
         size_t alen;

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



reply via email to

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