Browse Source

Annotate CombineHashes with nodiscard

babenko 1 year ago
parent
commit
f80a3188a4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      util/digest/numeric.h

+ 1 - 1
util/digest/numeric.h

@@ -81,6 +81,6 @@ static constexpr size_t NumericHash(T t) noexcept {
 }
 }
 
 
 template <class T>
 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;
     return IntHash(l) ^ r;
 }
 }