Commit e5165af5 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

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

we avoid it where possible.
parent 83e87842
Loading
Loading
Loading
Loading
+8 −9
Original line number Diff line number Diff line
@@ -1434,20 +1434,19 @@ Transfer(struct connectdata *conn)

CURLcode Curl_pretransfer(struct SessionHandle *data)
{
  CURLcode res;
  if(!data->change.url)
    /* we can't do anything wihout URL */
    return CURLE_URL_MALFORMAT;

#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
     before any transfer. */
  res = Curl_SSL_InitSessions(data, data->set.ssl.numsessions);
  {
    /* 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 of the cache)
       but before any transfer takes place. */
    CURLcode res = Curl_SSL_InitSessions(data, data->set.ssl.numsessions);
    if(res)
      return res;
#else
  (void)res;
  }
#endif

  data->set.followlocation=0; /* reset the location-follow counter */