From: Daniel Stenberg Date: Sat, 29 Apr 2023 15:49:12 +0000 (+0200) Subject: http2: (void)-mark when we explicitly ignore the return code X-Git-Tag: curl-8_1_0~45 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b637166092f995267606bebe5965db3ae3122fdc;p=thirdparty%2Fcurl.git http2: (void)-mark when we explicitly ignore the return code When h2_progress_egress() is called. Pointed out by Coverity. Closes #11057 --- diff --git a/lib/http2.c b/lib/http2.c index 539b1fc815..4db9951331 100644 --- a/lib/http2.c +++ b/lib/http2.c @@ -282,8 +282,8 @@ static void http2_data_done(struct Curl_cfilter *cf, * exhausted eventually. */ nghttp2_session_consume(ctx->h2, stream->id, Curl_bufq_len(&stream->recvbuf)); - /* give WINDOW_UPATE a chance to be sent */ - h2_progress_egress(cf, data); + /* give WINDOW_UPATE a chance to be sent, but ignore any error */ + (void)h2_progress_egress(cf, data); } /* -1 means unassigned and 0 means cleared */