fix compile errors on release build of g++

This commit is contained in:
2022-08-30 12:48:32 +09:00
parent 6a4ddb1642
commit f76960da1b
3 changed files with 5 additions and 1 deletions

View File

@@ -948,9 +948,11 @@ void Network::Item::Attach(Network& owner) noexcept {
auto [item_itr, item_inserted] = owner_->item_map_.emplace(id_, this);
assert(item_inserted);
(void) item_inserted;
auto [node_itr, node_inserted] = owner_->node_map_.emplace(node_, this);
assert(node_inserted);
(void) node_inserted;
file_->MoveUnder(owner, std::to_string(id_));
watcher_.emplace(*this);