]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Disable unused variable warning in msan configurations 3624/head
authorDaniel Kutenin <kutdanila@yandex.ru>
Thu, 20 Apr 2023 10:14:08 +0000 (11:14 +0100)
committerGitHub <noreply@github.com>
Thu, 20 Apr 2023 10:14:08 +0000 (11:14 +0100)
lib/compress/zstd_cwksp.h

index cc7fb1c715c84e9335c9621baf7f77bc45c64fa1..cfe808f150580b6dad3d05a30f4142923d8af150 100644 (file)
@@ -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);