Commit 6315eaed authored by Kenton Varda's avatar Kenton Varda

Fix some warnings.

parent 50313e41
...@@ -336,7 +336,7 @@ TEST(TwoPartyNetwork, ConvenienceClasses) { ...@@ -336,7 +336,7 @@ TEST(TwoPartyNetwork, ConvenienceClasses) {
EXPECT_EQ(1, callCount); EXPECT_EQ(1, callCount);
} }
class TestAuthenticatedBootstrapImpl class TestAuthenticatedBootstrapImpl final
: public test::TestAuthenticatedBootstrap<rpc::twoparty::VatId>::Server { : public test::TestAuthenticatedBootstrap<rpc::twoparty::VatId>::Server {
public: public:
TestAuthenticatedBootstrapImpl(rpc::twoparty::VatId::Reader clientId) { TestAuthenticatedBootstrapImpl(rpc::twoparty::VatId::Reader clientId) {
......
...@@ -643,7 +643,7 @@ TEST(Async, Detach) { ...@@ -643,7 +643,7 @@ TEST(Async, Detach) {
bool ran2 = false; bool ran2 = false;
bool ran3 = false; bool ran3 = false;
evalLater([&]() { ran1 = true; }); (void)evalLater([&]() { ran1 = true; }); // let returned promise be destroyed (canceled)
evalLater([&]() { ran2 = true; }).detach([](kj::Exception&&) { ADD_FAILURE(); }); evalLater([&]() { ran2 = true; }).detach([](kj::Exception&&) { ADD_FAILURE(); });
evalLater([]() { KJ_FAIL_ASSERT("foo"){break;} }).detach([&](kj::Exception&& e) { ran3 = true; }); evalLater([]() { KJ_FAIL_ASSERT("foo"){break;} }).detach([&](kj::Exception&& e) { ran3 = true; });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment