curl_easy_perform: Value stored to 'mcode' is never read
authorDaniel Stenberg <daniel@haxx.se>
Tue, 5 Feb 2013 13:09:18 +0000 (14:09 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 5 Feb 2013 13:09:18 +0000 (14:09 +0100)
pointed out by clang-analyzer

lib/easy.c

index 2f4b48b..c27deff 100644 (file)
@@ -457,7 +457,9 @@ CURLcode curl_easy_perform(CURL *easy)
     }
   }
 
-  mcode = curl_multi_remove_handle(multi, easy);
+  /* ignoring the return code isn't nice, but atm we can't really handle
+     a failure here, room for future improvement! */
+  (void)curl_multi_remove_handle(multi, easy);
 
   /* The multi handle is kept alive, owned by the easy handle */
   return code;