mdbx: workaround for false-positives from Valgrind bug.

This commit is contained in:
Леонид Юрьев (Leonid Yuriev)
2022-11-07 00:14:24 +03:00
parent 771c85a880
commit f0c6aa4646
2 changed files with 6 additions and 0 deletions

View File

@@ -5256,6 +5256,9 @@ static __inline void meta_troika_unpack(meta_troika_t *troika,
troika->recent = (packed >> 2) & 3;
troika->prefer_steady = (packed >> 4) & 3;
troika->tail_and_flags = packed & 0xC3;
#if MDBX_WORDBITS > 32 /* Workaround for false-positives from Valgrind */
troika->unused_pad = 0;
#endif
}
static const uint8_t troika_fsm_map[2 * 2 * 2 * 3 * 3 * 3] = {