Commit 94946a09 authored by Kenton Varda's avatar Kenton Varda

Merge pull request #333 from katreniak/bka-cleanups

Bka cleanups - fix compiler warnings in kj tests
parents f45a5d5c 093a9823
......@@ -470,7 +470,7 @@ TEST(AsyncUnixTest, UrgentObserver) {
// Spawn a TCP server
KJ_SYSCALL(tmpFd = socket(AF_INET, SOCK_STREAM, 0));
kj::AutoCloseFd serverFd(tmpFd);
sockaddr_in saddr = {0};
sockaddr_in saddr = {};
saddr.sin_family = AF_INET;
saddr.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
KJ_SYSCALL(bind(serverFd, reinterpret_cast<sockaddr*>(&saddr), sizeof(saddr)));
......
......@@ -346,6 +346,8 @@ public:
if (passCount > 0) write(GREEN, kj::str(passCount, " test(s) passed"), "");
if (failCount > 0) write(RED, kj::str(failCount, " test(s) failed"), "");
context.exit();
KJ_UNREACHABLE;
}
private:
......
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