From 4c25ea329b851e1d2e45c2a91e0d5d79a3ad3be0 Mon Sep 17 00:00:00 2001 From: Daniel Kutenin Date: Thu, 20 Apr 2023 11:14:08 +0100 Subject: [PATCH] Disable unused variable warning in msan configurations --- lib/compress/zstd_cwksp.h | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/compress/zstd_cwksp.h b/lib/compress/zstd_cwksp.h index cc7fb1c715c..cfe808f1505 100644 --- a/lib/compress/zstd_cwksp.h +++ b/lib/compress/zstd_cwksp.h @@ -192,6 +192,7 @@ MEM_STATIC void ZSTD_cwksp_assert_internal_consistency(ZSTD_cwksp* ws) { { intptr_t const offset = __msan_test_shadow(ws->initOnceStart, (U8*)ZSTD_cwksp_initialAllocStart(ws) - (U8*)ws->initOnceStart); + (void)offset; #if defined(ZSTD_MSAN_PRINT) if(offset!=-1) { __msan_print_shadow((U8*)ws->initOnceStart + offset - 8, 32);