1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

The MIPSPro compiler complains on constructs such as "(void)foo;" so

we avoid it where possible.
This commit is contained in:
Daniel Stenberg 2004-02-06 07:59:16 +00:00
parent 83e878420a
commit e5165af5a6

View File

@ -1434,20 +1434,19 @@ Transfer(struct connectdata *conn)
CURLcode Curl_pretransfer(struct SessionHandle *data) CURLcode Curl_pretransfer(struct SessionHandle *data)
{ {
CURLcode res;
if(!data->change.url) if(!data->change.url)
/* we can't do anything wihout URL */ /* we can't do anything wihout URL */
return CURLE_URL_MALFORMAT; return CURLE_URL_MALFORMAT;
#ifdef USE_SSLEAY #ifdef USE_SSLEAY
/* Init the SSL session ID cache here. We do it here since we want to {
do it after the *_setopt() calls (that could change the size) but /* Init the SSL session ID cache here. We do it here since we want to do
before any transfer. */ it after the *_setopt() calls (that could change the size of the cache)
res = Curl_SSL_InitSessions(data, data->set.ssl.numsessions); but before any transfer takes place. */
if(res) CURLcode res = Curl_SSL_InitSessions(data, data->set.ssl.numsessions);
return res; if(res)
#else return res;
(void)res; }
#endif #endif
data->set.followlocation=0; /* reset the location-follow counter */ data->set.followlocation=0; /* reset the location-follow counter */