From: Daniel Stenberg Date: Tue, 4 Sep 2018 17:21:16 +0000 (+0200) Subject: Curl_getoff_all_pipelines: ignore unused return values X-Git-Tag: curl-7_61_1~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=53dab550b4bad19449f1032521adaa750363368e;p=curl Curl_getoff_all_pipelines: ignore unused return values Since scan-build would warn on the dead "Dead store/Dead increment" --- diff --git a/lib/url.c b/lib/url.c index 6c9caffab..f15900889 100644 --- 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); } }