Silence various warnings

pull/1273/head
Jason Rhinelander 4 years ago
parent e03dfc751c
commit 26ecf23ad8

@ -166,12 +166,12 @@ namespace llarp
conf.defineOption<bool>( conf.defineOption<bool>(
"network", "reachable", false, ReachableDefault, AssignmentAcceptor(m_reachable)); "network", "reachable", false, ReachableDefault, AssignmentAcceptor(m_reachable));
conf.defineOption<int>("network", "hops", false, HopsDefault, [this](int arg) { conf.defineOption<int>("network", "hops", false, HopsDefault, [](int arg) {
if (arg < 1 or arg > 8) if (arg < 1 or arg > 8)
throw std::invalid_argument("[endpoint]:hops must be >= 1 and <= 8"); throw std::invalid_argument("[endpoint]:hops must be >= 1 and <= 8");
}); });
conf.defineOption<int>("network", "paths", false, PathsDefault, [this](int arg) { conf.defineOption<int>("network", "paths", false, PathsDefault, [](int arg) {
if (arg < 1 or arg > 8) if (arg < 1 or arg > 8)
throw std::invalid_argument("[endpoint]:paths must be >= 1 and <= 8"); throw std::invalid_argument("[endpoint]:paths must be >= 1 and <= 8");
}); });

@ -141,7 +141,7 @@ namespace llarp
uint64_t txid, uint64_t txid,
const service::EncryptedIntroSet& introset, const service::EncryptedIntroSet& introset,
const Key_t& tellpeer, const Key_t& tellpeer,
uint64_t relayOrder); uint64_t relayOrder) override;
/// send introset to peer from source with S counter and excluding peers /// send introset to peer from source with S counter and excluding peers
void void
@ -150,7 +150,7 @@ namespace llarp
uint64_t txid, uint64_t txid,
const service::EncryptedIntroSet& introset, const service::EncryptedIntroSet& introset,
const Key_t& tellpeer, const Key_t& tellpeer,
uint64_t relayOrder); uint64_t relayOrder) override;
/// initialize dht context and explore every exploreInterval milliseconds /// initialize dht context and explore every exploreInterval milliseconds
void void

@ -92,7 +92,8 @@ namespace llarp
} }
std::ostream& std::ostream&
ExitInfo::print(std::ostream& stream, int level, int spaces) const ExitInfo::print(
std::ostream& stream, [[maybe_unused]] int level, [[maybe_unused]] int spaces) const
{ {
/* /*
// TODO: derive these from ipAdress // TODO: derive these from ipAdress

@ -258,7 +258,7 @@ namespace llarp
handler({}, false); handler({}, false);
return false; return false;
} }
for (const auto item : itr.value()) for (const auto& item : itr.value())
{ {
if (not item.is_object()) if (not item.is_object())
continue; continue;

@ -43,7 +43,7 @@ namespace llarp
} }
bool bool
Endpoint::Configure(const NetworkConfig& conf, const DnsConfig& dnsConf) Endpoint::Configure(const NetworkConfig& conf, [[maybe_unused]] const DnsConfig& dnsConf)
{ {
if (conf.m_paths > 0) if (conf.m_paths > 0)
numPaths = conf.m_paths; numPaths = conf.m_paths;

@ -256,7 +256,7 @@ namespace llarp
MarkAddressOutbound(const Address&) override; MarkAddressOutbound(const Address&) override;
bool bool
ShouldBundleRC() const ShouldBundleRC() const override
{ {
return false; return false;
} }

@ -116,7 +116,7 @@ struct ServerHandler : public abyss::httpd::IRPCHandler
} }
Response Response
HandleJSONRPC(Method_t method, const Params& /*params*/) HandleJSONRPC(Method_t method, const Params& /*params*/) override
{ {
test->AssertMethod(method); test->AssertMethod(method);
test->called = true; test->called = true;

@ -89,7 +89,7 @@ class IntQueue
} }
else else
{ {
return {}; return std::nullopt;
} }
} }

Loading…
Cancel
Save