mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-24 01:25:33 +00:00
mark all hash_into methods nodiscard
This commit is contained in:
parent
a2805b15c9
commit
a58481e9b7
21 changed files with 60 additions and 60 deletions
|
@ -53,7 +53,7 @@ struct QlDspSimdPass : public Pass {
|
|||
DspConfig(const DspConfig &ref) = default;
|
||||
DspConfig(DspConfig &&ref) = default;
|
||||
|
||||
Hasher hash_into(Hasher h) const { h.eat(connections); return h; }
|
||||
[[nodiscard]] Hasher hash_into(Hasher h) const { h.eat(connections); return h; }
|
||||
|
||||
bool operator==(const DspConfig &ref) const { return connections == ref.connections; }
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue