mirror of
https://github.com/moparisthebest/curl
synced 2024-08-13 17:03:50 -04:00
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.
This commit is contained in:
parent
b7bdf2100e
commit
81be254870
@ -907,7 +907,9 @@ CURLcode Curl_loadhostpairs(struct Curl_easy *data)
|
|||||||
char *entry_id;
|
char *entry_id;
|
||||||
size_t entry_len;
|
size_t entry_len;
|
||||||
char address[64];
|
char address[64];
|
||||||
|
#if !defined(CURL_DISABLE_VERBOSE_STRINGS)
|
||||||
char *addresses = NULL;
|
char *addresses = NULL;
|
||||||
|
#endif
|
||||||
char *addr_begin;
|
char *addr_begin;
|
||||||
char *addr_end;
|
char *addr_end;
|
||||||
char *port_ptr;
|
char *port_ptr;
|
||||||
@ -930,7 +932,9 @@ CURLcode Curl_loadhostpairs(struct Curl_easy *data)
|
|||||||
goto err;
|
goto err;
|
||||||
|
|
||||||
port = (int)tmp_port;
|
port = (int)tmp_port;
|
||||||
|
#if !defined(CURL_DISABLE_VERBOSE_STRINGS)
|
||||||
addresses = end_ptr + 1;
|
addresses = end_ptr + 1;
|
||||||
|
#endif
|
||||||
|
|
||||||
while(*end_ptr) {
|
while(*end_ptr) {
|
||||||
size_t alen;
|
size_t alen;
|
||||||
|
Loading…
Reference in New Issue
Block a user