From 8f5932834c99c74dadc9ae23d89bfe0704b091de Mon Sep 17 00:00:00 2001 From: Hugo Landau Date: Fri, 28 Oct 2022 07:32:54 +0100 Subject: [PATCH] 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) --- test/quic_stream_test.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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) -- 2.47.3