From b637166092f995267606bebe5965db3ae3122fdc Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sat, 29 Apr 2023 17:49:12 +0200 Subject: [PATCH] http2: (void)-mark when we explicitly ignore the return code When h2_progress_egress() is called. Pointed out by Coverity. Closes #11057 --- lib/http2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 */