aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorbabenko <babenko@yandex-team.com>2024-02-09 23:45:37 +0300
committerDaniil Cherednik <dcherednik@ydb.tech>2024-02-14 14:25:27 +0000
commitf80a3188a4bf460d4877826bb5508e5f1c227dec (patch)
treed2f19df718d50f600461ada840cda2e38c109445 /util
parent94f19e2b2a5e17ea5ebe17910526b7929964fecf (diff)
downloadydb-f80a3188a4bf460d4877826bb5508e5f1c227dec.tar.gz
Annotate CombineHashes with nodiscard
Diffstat (limited to 'util')
-rw-r--r--util/digest/numeric.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/digest/numeric.h b/util/digest/numeric.h
index e20bd908e4..1e9c74ebbb 100644
--- a/util/digest/numeric.h
+++ b/util/digest/numeric.h
@@ -81,6 +81,6 @@ static constexpr size_t NumericHash(T t) noexcept {
}
template <class T>
-static constexpr T CombineHashes(T l, T r) noexcept {
+[[nodiscard]] static constexpr T CombineHashes(T l, T r) noexcept {
return IntHash(l) ^ r;
}