fix compile errors on release build of g++

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

View File

@ -4,9 +4,10 @@
#include <exception>
#include <memory>
#include <mutex>
#include <source_location>
#include <string_view>
#include <source_location.hh>
#include "nf7.hh"
#include "common/file_base.hh"

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);

1
nf7.cc
View File

@ -182,6 +182,7 @@ File::TypeInfo::TypeInfo(const std::string& name,
auto& reg = registry_();
auto [itr, uniq] = reg.emplace(std::string(name_), this);
assert(uniq);
(void) uniq;
}
File::TypeInfo::~TypeInfo() noexcept {
auto& reg = registry_();