From: Hugo Landau Date: Fri, 28 Oct 2022 06:32:54 +0000 (+0100) Subject: Fix unused variable in QUIC send stream test X-Git-Tag: openssl-3.2.0-alpha1~1808 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8f5932834c99c74dadc9ae23d89bfe0704b091de;p=thirdparty%2Fopenssl.git Fix unused variable in QUIC send stream test Reviewed-by: Matt Caswell Reviewed-by: Tomas Mraz Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/19526) --- diff --git a/test/quic_stream_test.c b/test/quic_stream_test.c index 844e78da7d0..3f0532b1ea9 100644 --- a/test/quic_stream_test.c +++ b/test/quic_stream_test.c @@ -210,7 +210,7 @@ static int test_bulk(int idx) QUIC_SSTREAM *sstream = NULL; OSSL_QUIC_FRAME_STREAM hdr; OSSL_QTX_IOVEC iov[2]; - size_t i, num_iov = 0, init_size = 8192, total_written = 0, l; + size_t i, num_iov = 0, init_size = 8192, l; size_t consumed = 0, rd, expected = 0; unsigned char *src_buf = NULL, *dst_buf = NULL; unsigned char *ref_src_buf = NULL, *ref_dst_buf = NULL; @@ -259,7 +259,6 @@ static int test_bulk(int idx) memcpy(ref_src_cur, src_buf, consumed); ref_src_cur += consumed; - total_written += consumed; } while (consumed > 0); if (!TEST_size_t_eq(ossl_quic_sstream_get_buffer_used(sstream), init_size)