From 53dab550b4bad19449f1032521adaa750363368e Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 4 Sep 2018 19:21:16 +0200 Subject: Curl_getoff_all_pipelines: ignore unused return values Since scan-build would warn on the dead "Dead store/Dead increment" --- lib/url.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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); } } -- cgit v1.2.1