mirror of
https://github.com/curl/curl.git
synced 2025-09-22 12:06:47 +03:00
Fixed a couple of compiler warnings.
This commit is contained in:
parent
0d3d84e3ff
commit
7fe65aaf5b
|
@ -221,7 +221,7 @@ void Curl_freeset(struct SessionHandle * data)
|
||||||
{
|
{
|
||||||
/* Free all dynamic strings stored in the data->set substructure. */
|
/* Free all dynamic strings stored in the data->set substructure. */
|
||||||
enum dupstring i;
|
enum dupstring i;
|
||||||
for(i=0; i < STRING_LAST; i++)
|
for(i=(enum dupstring)0; i < STRING_LAST; i++)
|
||||||
Curl_safefree(data->set.str[i]);
|
Curl_safefree(data->set.str[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3274,6 +3274,10 @@ static char *detect_proxy(struct connectdata *conn)
|
||||||
} /* NO_PROXY wasn't specified or '*' */
|
} /* NO_PROXY wasn't specified or '*' */
|
||||||
if(no_proxy)
|
if(no_proxy)
|
||||||
free(no_proxy);
|
free(no_proxy);
|
||||||
|
|
||||||
|
#else /* !CURL_DISABLE_HTTP */
|
||||||
|
|
||||||
|
(void)conn;
|
||||||
#endif /* CURL_DISABLE_HTTP */
|
#endif /* CURL_DISABLE_HTTP */
|
||||||
|
|
||||||
return proxy;
|
return proxy;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user