Skip to content

Commit 2f522f4

Browse files
committed
Ignore overflow in hash_combine as it's expected and harmless.
1 parent 68effed commit 2f522f4

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

cpp/include/versioned/versioned.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ constexpr N masked_max(U value)
8383
// Simple hash values combine.
8484
template <class T, class... N>
8585
T hash_combine(T seed, N... an)
86+
#if defined(__clang__)
87+
__attribute__((no_sanitize("unsigned-integer-overflow")))
88+
#endif
8689
{
8790
T args[] = { an... };
8891
// Init.

0 commit comments

Comments
 (0)