The MIPSPro compiler complains on constructs such as "(void)foo;" so
authorDaniel Stenberg <daniel@haxx.se>
Fri, 6 Feb 2004 07:59:16 +0000 (07:59 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 6 Feb 2004 07:59:16 +0000 (07:59 +0000)
we avoid it where possible.

lib/transfer.c

index 707895fdec560fae6d51261d9aa7a9a71e803d05..1c9a474a7737ceb392e1ac4612720eb8bcaa5aa3 100644 (file)
@@ -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);
-  if(res)
-    return res;
-#else
-  (void)res;
+  {
+    /* 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;
+  }
 #endif
 
   data->set.followlocation=0; /* reset the location-follow counter */