diff --git a/include/E/E_System.hpp b/include/E/E_System.hpp index f34fda6ce..f95a463a1 100644 --- a/include/E/E_System.hpp +++ b/include/E/E_System.hpp @@ -126,6 +126,7 @@ class System : private Log { auto module = std::make_shared(std::forward(args)...); module->id = newModuleID(); bool ret = registeredModule.insert({module->id, module}).second; + (void)ret; assert(ret); return module; } diff --git a/include/E/Networking/E_Host.hpp b/include/E/Networking/E_Host.hpp index fabdc2d75..d0d6bf987 100644 --- a/include/E/Networking/E_Host.hpp +++ b/include/E/Networking/E_Host.hpp @@ -378,12 +378,14 @@ class Host : public NetworkModule, public NetworkLog, public RoutingInfo { if constexpr (std::is_base_of::value) { auto hostModuleName = hostModule->getHostModuleName(); bool ret = hostModuleMap.insert({hostModuleName, hostModule}).second; + (void)ret; assert(ret); } if constexpr (std::is_base_of::value) { auto timerModuleName = hostModule->getTimerModuleName(); bool ret = timerModuleMap.insert({timerModuleName, hostModule}).second; + (void)ret; assert(ret); } @@ -393,6 +395,7 @@ class Host : public NetworkModule, public NetworkLog, public RoutingInfo { .insert({Namespace(hostModule->domain, hostModule->protocol), hostModule}) .second; + (void)ret; assert(ret); } } diff --git a/src/Networking/E_Host.cpp b/src/Networking/E_Host.cpp index 13a7185d9..1e9cef049 100644 --- a/src/Networking/E_Host.cpp +++ b/src/Networking/E_Host.cpp @@ -147,6 +147,7 @@ Module::Message Host::messageReceived(const ModuleID from, assert(iter != processInfoMap.end()); for (auto allSyscall : syscallMap) { + (void)allSyscall; assert( allSyscall.second != iter->second.application->pid); // no syscall pending for returned app