From 5188e2f0405b7cd4e5ee1c458403fb4c6d4a37c7 Mon Sep 17 00:00:00 2001 From: Eugene Syromiatnikov Date: Sat, 10 Oct 2026 00:08:36 +0200 Subject: test/quic_stream_test.c: remove unused tho_heap1024_total global variable msys-minigw64 workflow with clang compiler started to fail during build with the following diagnostics: test/quic_stream_test.c:3172:53: error: variable 'tho_heap1024_total' set but not used [-Werror,-Wunused-but-set-global] 3172 | static size_t tho_heap1024_live, tho_heap1024_peak, tho_heap1024_total; | ^ Remove the variable, as it seems that it indeed has no use in the current version of the test. Complements: 2d6c7ced4337 "tests: test_dstorage_cleanse() and test_heap_overlap()" Signed-off-by: Eugene Syromiatnikov Reviewed-by: Milan Broz Reviewed-by: Neil Horman Merge-date: Sat Oct 10 16:16:22 2026 Merged-from: https://github.com/openssl/openssl/pull/33180 --- test/quic_stream_test.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'test') diff --git a/test/quic_stream_test.c b/test/quic_stream_test.c index 8268b748298..dbb666973d0 100644 --- a/test/quic_stream_test.c +++ b/test/quic_stream_test.c @@ -3169,7 +3169,7 @@ DEFINE_LIST_OF(tho, THO_ALLOC_HDR); #define THO_N_SLIDES 256 static size_t tho_reas_live, tho_reas_peak; -static size_t tho_heap1024_live, tho_heap1024_peak, tho_heap1024_total; +static size_t tho_heap1024_live, tho_heap1024_peak; static int tho_tracking; static OSSL_LIST(tho) @@ -3207,7 +3207,6 @@ static void *tho_malloc(size_t sz, const char *file, int line) tho_reas_peak = tho_reas_live; if (sz == THO_FRAME_LEN) { tho_heap1024_live++; - tho_heap1024_total++; if (tho_heap1024_live > tho_heap1024_peak) tho_heap1024_peak = tho_heap1024_live; } -- cgit