Skip to content

Commit

Permalink
Merge pull request #3624 from danlark1/patch-4
Browse files Browse the repository at this point in the history
Disable unused variable warning in msan configurations
  • Loading branch information
Cyan4973 committed Apr 20, 2023
2 parents 189653a + 4c25ea3 commit e256e43
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/compress/zstd_cwksp.h
Expand Up @@ -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);
Expand Down

0 comments on commit e256e43

Please sign in to comment.