Skip to content

Commit 4dbef95

Browse files
committed
mark all hash_top methods nodiscard
1 parent a58481e commit 4dbef95

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kernel/rtlil.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ struct RTLIL::IdString
364364

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

367-
Hasher hash_top() const {
367+
[[nodiscard]] Hasher hash_top() const {
368368
Hasher h;
369369
h.force((Hasher::hash_t) index_);
370370
return h;
@@ -915,7 +915,7 @@ struct RTLIL::SigBit
915915
bool operator ==(const RTLIL::SigBit &other) const;
916916
bool operator !=(const RTLIL::SigBit &other) const;
917917
[[nodiscard]] Hasher hash_into(Hasher h) const;
918-
Hasher hash_top() const;
918+
[[nodiscard]] Hasher hash_top() const;
919919
};
920920

921921
namespace hashlib {

0 commit comments

Comments
 (0)