]> granicus.if.org Git - curl/commitdiff
Curl_getoff_all_pipelines: ignore unused return values
authorDaniel Stenberg <daniel@haxx.se>
Tue, 4 Sep 2018 17:21:16 +0000 (19:21 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 4 Sep 2018 17:22:06 +0000 (19:22 +0200)
Since scan-build would warn on the dead "Dead store/Dead increment"

lib/url.c

index 6c9caffab7588658b4a82bdd5f6a4dbe7780fddc..f159008898b151a48f617510da7270a21104fbbf 100644 (file)
--- a/lib/url.c
+++ b/lib/url.c
@@ -917,9 +917,8 @@ void Curl_getoff_all_pipelines(struct Curl_easy *data,
       Curl_pipeline_leave_write(conn);
   }
   else {
-    int rc;
-    rc = Curl_removeHandleFromPipeline(data, &conn->recv_pipe);
-    rc += Curl_removeHandleFromPipeline(data, &conn->send_pipe);
+    (void)Curl_removeHandleFromPipeline(data, &conn->recv_pipe);
+    (void)Curl_removeHandleFromPipeline(data, &conn->send_pipe);
   }
 }