From: Dan Fandrich Date: Sat, 4 Aug 2007 16:54:58 +0000 (+0000) Subject: Fixed a couple of compiler warnings. X-Git-Tag: curl-7_17_0-preldapfix~22 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7fe65aaf5bda5f48eebcc3f694485b2bc6b49d6c;p=curl Fixed a couple of compiler warnings. --- diff --git a/lib/url.c b/lib/url.c index ba48da8eb..5273fdb41 100644 --- a/lib/url.c +++ b/lib/url.c @@ -221,7 +221,7 @@ void Curl_freeset(struct SessionHandle * data) { /* Free all dynamic strings stored in the data->set substructure. */ 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]); } @@ -3274,6 +3274,10 @@ static char *detect_proxy(struct connectdata *conn) } /* NO_PROXY wasn't specified or '*' */ if(no_proxy) free(no_proxy); + +#else /* !CURL_DISABLE_HTTP */ + + (void)conn; #endif /* CURL_DISABLE_HTTP */ return proxy;