Skip to content

Commit

Permalink
mark all hash_top methods nodiscard
Browse files Browse the repository at this point in the history
  • Loading branch information
widlarizer committed Jan 14, 2025
1 parent a58481e commit 4dbef95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kernel/rtlil.h
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ struct RTLIL::IdString

[[nodiscard]] Hasher hash_into(Hasher h) const { return hash_ops<int>::hash_into(index_, h); }

Hasher hash_top() const {
[[nodiscard]] Hasher hash_top() const {
Hasher h;
h.force((Hasher::hash_t) index_);
return h;
Expand Down Expand Up @@ -915,7 +915,7 @@ struct RTLIL::SigBit
bool operator ==(const RTLIL::SigBit &other) const;
bool operator !=(const RTLIL::SigBit &other) const;
[[nodiscard]] Hasher hash_into(Hasher h) const;
Hasher hash_top() const;
[[nodiscard]] Hasher hash_top() const;
};

namespace hashlib {
Expand Down

0 comments on commit 4dbef95

Please sign in to comment.