]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Silence warning in older versions of Valgrind
authorJohn Naylor <john.naylor@postgresql.org>
Mon, 24 Feb 2025 11:03:29 +0000 (18:03 +0700)
committerJohn Naylor <john.naylor@postgresql.org>
Mon, 24 Feb 2025 11:03:48 +0000 (18:03 +0700)
commitfde7c0164ea20433964a0a05a91c5708384a285c
tree640efc68d8dc250df211c86f8f55d65e384712bd
parent16eff4261f46a4820ee628d160c53ab2a07eef49
Silence warning in older versions of Valgrind

Due to misunderstanding on my part, commit 235328ee4 did not go far
enough to silence older versions of Valgrind. For those, it was the bit
scan that was problematic, not the subsequent bit-masking operation. To
fix, use the unaligned path for the trailing bytes. Since we don't have
a bit scan here anymore, also remove some comments and endian-specific
coding around that.

Reported-by: Anton A. Melnikov <a.melnikov@postgrespro.ru>
Discussion: https://postgr.es/m/f3aa2d45-3b28-41c5-9499-a1bc30e0f8ec@postgrespro.ru
Backpatch-through: 17
src/include/common/hashfn_unstable.h